diff options
Diffstat (limited to 'keyboards/aeboards/ext65/rev2/config.h')
-rw-r--r-- | keyboards/aeboards/ext65/rev2/config.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/keyboards/aeboards/ext65/rev2/config.h b/keyboards/aeboards/ext65/rev2/config.h new file mode 100644 index 000000000..959bf91dc --- /dev/null +++ b/keyboards/aeboards/ext65/rev2/config.h | |||
@@ -0,0 +1,77 @@ | |||
1 | /* | ||
2 | Copyright 2015 Jun Wako <wakojun@gmail.com> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | /* USB Device descriptor parameter */ | ||
21 | #define VENDOR_ID 0x4145 // "AE" | ||
22 | #define PRODUCT_ID 0xA652 // AEboards EXT65 Rev2 | ||
23 | #define DEVICE_VER 0x0001 | ||
24 | #define MANUFACTURER AEboards | ||
25 | #define PRODUCT AEBoards Ext65 Rev2 | ||
26 | |||
27 | /* key matrix size */ | ||
28 | /* key matrix size */ | ||
29 | #define MATRIX_ROWS 10 | ||
30 | #define MATRIX_COLS 10 | ||
31 | |||
32 | /* key matrix pins */ | ||
33 | #define MATRIX_ROW_PINS { A10, A9, A8, B7, A2, A1, B12, B11, B10, B2 } | ||
34 | #define MATRIX_COL_PINS { B14, B6, A0, B1, B0, A7, A6, A5, A4, A3 } | ||
35 | |||
36 | #define DIODE_DIRECTION COL2ROW | ||
37 | |||
38 | /* Set 0 if debouncing isn't needed */ | ||
39 | #define DEBOUNCE 5 | ||
40 | |||
41 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
42 | #define LOCKING_SUPPORT_ENABLE | ||
43 | /* Locking resynchronize hack */ | ||
44 | #define LOCKING_RESYNC_ENABLE | ||
45 | |||
46 | //RGB Underglow WS2812 | ||
47 | #define RGBLIGHT_ANIMATIONS | ||
48 | #define RGBLED_NUM 24 | ||
49 | #define RGB_DI_PIN B15 | ||
50 | |||
51 | //SPI | ||
52 | #define WS2812_SPI SPID2 | ||
53 | #define WS2812_SPI_MOSI_PAL_MODE 0 | ||
54 | #define WS2812_EXTERNAL_PULLUP | ||
55 | |||
56 | // I2C OLED defines | ||
57 | #define I2C1_SCL 8 | ||
58 | #define I2C1_SDA 9 | ||
59 | |||
60 | #define I2C1_SCL_PAL_MODE 1 | ||
61 | #define I2C1_SDA_PAL_MODE 1 | ||
62 | |||
63 | #define I2C1_TIMINGR_PRESC 0U | ||
64 | #define I2C1_TIMINGR_SCLDEL 3U | ||
65 | #define I2C1_TIMINGR_SDADEL 1U | ||
66 | #define I2C1_TIMINGR_SCLH 3U | ||
67 | #define I2C1_TIMINGR_SCLL 9U | ||
68 | |||
69 | // LED defines | ||
70 | #define BACKLIGHT_PIN B5 | ||
71 | #define BACKLIGHT_PWM_DRIVER PWMD3 | ||
72 | #define BACKLIGHT_PWM_CHANNEL 2 | ||
73 | #define BACKLIGHT_PAL_MODE 1 | ||
74 | |||
75 | #define BACKLIGHT_LEVELS 6 | ||
76 | #define BACKLIGHT_BREATHING | ||
77 | #define BREATHING_PERIOD 6 | ||