diff options
Diffstat (limited to 'keyboards/draytronics/elise/config.h')
-rw-r--r-- | keyboards/draytronics/elise/config.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/keyboards/draytronics/elise/config.h b/keyboards/draytronics/elise/config.h new file mode 100644 index 000000000..f5fde6987 --- /dev/null +++ b/keyboards/draytronics/elise/config.h | |||
@@ -0,0 +1,70 @@ | |||
1 | /*Copyright 2021 Blake Drayson / Draytronics | ||
2 | |||
3 | Contact info@draytronics.co.uk | ||
4 | |||
5 | This program is free software: you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published by | ||
7 | the Free Software Foundation, either version 2 of the License, or | ||
8 | (at your option) any later version. | ||
9 | |||
10 | This program is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | GNU General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #pragma once | ||
20 | |||
21 | #include "config_common.h" | ||
22 | |||
23 | /* USB Device descriptor parameter */ | ||
24 | #define VENDOR_ID 0x4454 //DT for DrayTronics | ||
25 | #define PRODUCT_ID 0x454C //EL for Elise | ||
26 | #define DEVICE_VER 0x0100 //Version 1 | ||
27 | #define MANUFACTURER Draytronics | ||
28 | #define PRODUCT ELISE | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 5 | ||
32 | #define MATRIX_COLS 15 | ||
33 | |||
34 | /* | ||
35 | * Keyboard Matrix Assignments | ||
36 | * | ||
37 | * Change this to how you wired your keyboard | ||
38 | * COLS: AVR pins used for columns, left to right | ||
39 | * ROWS: AVR pins used for rows, top to bottom | ||
40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
42 | * | ||
43 | */ | ||
44 | #define MATRIX_ROW_PINS { B2,B3, B1, F0, F1} | ||
45 | #define MATRIX_COL_PINS { F4, F5, F6, F7, C7, C6, B6, B5, B4, D7, D6, D4, D2, D3, D5} | ||
46 | #define UNUSED_PINS | ||
47 | |||
48 | /* COL2ROW, ROW2COL*/ | ||
49 | #define DIODE_DIRECTION COL2ROW | ||
50 | |||
51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
52 | #define DEBOUNCE 5 | ||
53 | |||
54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
55 | #define LOCKING_SUPPORT_ENABLE | ||
56 | /* Locking resynchronize hack */ | ||
57 | #define LOCKING_RESYNC_ENABLE | ||
58 | |||
59 | // ws2812 options | ||
60 | #define RGB_DI_PIN D1 // pin the DI on the ws2812 is hooked-up to | ||
61 | #ifdef RGB_DI_PIN | ||
62 | #define RGBLED_NUM 7 | ||
63 | #define RGBLIGHT_HUE_STEP 8 | ||
64 | #define RGBLIGHT_SAT_STEP 8 | ||
65 | #define RGBLIGHT_VAL_STEP 8 | ||
66 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
67 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
68 | /*== all animations enable ==*/ | ||
69 | #define RGBLIGHT_ANIMATIONS | ||
70 | #endif | ||