diff options
Diffstat (limited to 'keyboards/cherrybstudio/cb87/config.h')
-rw-r--r-- | keyboards/cherrybstudio/cb87/config.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/keyboards/cherrybstudio/cb87/config.h b/keyboards/cherrybstudio/cb87/config.h new file mode 100644 index 000000000..41a153081 --- /dev/null +++ b/keyboards/cherrybstudio/cb87/config.h | |||
@@ -0,0 +1,63 @@ | |||
1 | /* | ||
2 | This program is free software: you can redistribute it and/or modify | ||
3 | it under the terms of the GNU General Public License as published by | ||
4 | the Free Software Foundation, either version 2 of the License, or | ||
5 | (at your option) any later version. | ||
6 | This program is distributed in the hope that it will be useful, | ||
7 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
8 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
9 | GNU General Public License for more details. | ||
10 | You should have received a copy of the GNU General Public License | ||
11 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
12 | */ | ||
13 | |||
14 | #pragma once | ||
15 | |||
16 | #include "config_common.h" | ||
17 | |||
18 | /* USB Device descriptor parameter */ | ||
19 | #define VENDOR_ID 0x4342 // CB | ||
20 | #define PRODUCT_ID 0x8787 | ||
21 | #define DEVICE_VER 0x0001 | ||
22 | #define MANUFACTURER CherryB Studio | ||
23 | #define PRODUCT CB87 | ||
24 | |||
25 | /* key matrix size */ | ||
26 | #define MATRIX_ROWS 9 | ||
27 | #define MATRIX_COLS 10 | ||
28 | |||
29 | /* | ||
30 | * Keyboard Matrix Assignments | ||
31 | * | ||
32 | * Change this to how you wired your keyboard | ||
33 | * COLS: AVR pins used for columns, left to right | ||
34 | * ROWS: AVR pins used for rows, top to bottom | ||
35 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
36 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
37 | * | ||
38 | * 0 1 2 3 4 5 6 7 8 9 | ||
39 | */ | ||
40 | #define MATRIX_ROW_PINS { B0, B1, B2, B3, B7, D0, D1, D2, D3 } | ||
41 | #define MATRIX_COL_PINS { D5, D4, D6, D7, B4, B5, F5, C6, C7, F7 } | ||
42 | //#define UNUSED_PINS | ||
43 | |||
44 | /* COL2ROW, ROW2COL*/ | ||
45 | #define DIODE_DIRECTION COL2ROW | ||
46 | #define BACKLIGHT_PIN B6 | ||
47 | #ifdef BACKLIGHT_PIN | ||
48 | #define BACKLIGHT_LEVELS 3 | ||
49 | #endif | ||
50 | |||
51 | #define LED_CAPS_LOCK_PIN F0 | ||
52 | |||
53 | /* Set 0 if debouncing isn't needed */ | ||
54 | #define DEBOUNCE 5 | ||
55 | |||
56 | #define RGB_DI_PIN E6 | ||
57 | #ifdef RGB_DI_PIN | ||
58 | #define RGBLIGHT_ANIMATIONS | ||
59 | #define RGBLED_NUM 22 /* 16 Bottom 6 top*/ | ||
60 | #define RGBLIGHT_HUE_STEP 8 | ||
61 | #define RGBLIGHT_SAT_STEP 8 | ||
62 | #define RGBLIGHT_VAL_STEP 8 | ||
63 | #endif | ||