diff options
Diffstat (limited to 'keyboards/chili/config.h')
-rw-r--r-- | keyboards/chili/config.h | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/keyboards/chili/config.h b/keyboards/chili/config.h new file mode 100644 index 000000000..13bd70036 --- /dev/null +++ b/keyboards/chili/config.h | |||
@@ -0,0 +1,112 @@ | |||
1 | /* | ||
2 | Copyright 2012 Jun Wako <[email protected]> | ||
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 | #include "config_common.h" | ||
21 | |||
22 | /* USB Device descriptor parameter */ | ||
23 | #define VENDOR_ID 0x5945 // "YE" | ||
24 | #define PRODUCT_ID 0x0001 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER YDKB | ||
27 | #define PRODUCT Chili | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 11 | ||
31 | #define MATRIX_COLS 10 | ||
32 | |||
33 | // ROWS: Top to bottom, COLS: Left to right | ||
34 | /* Row pin configuration | ||
35 | */ | ||
36 | #define MATRIX_ROW_PINS { F5, F4, F1, F0, E6, B0, D5, D3, D2, D1, D0 } | ||
37 | /* Column pin configuration | ||
38 | */ | ||
39 | #define MATRIX_COL_PINS { D4, F6, F7, C7, C6, B6, B5, B4, D7, D6 } | ||
40 | #define UNUSED_PINS | ||
41 | |||
42 | /* COL2ROW or ROW2COL */ | ||
43 | #define DIODE_DIRECTION COL2ROW | ||
44 | |||
45 | #define LED_NUM_LOCK_PIN B1 | ||
46 | #define LED_CAPS_LOCK_PIN B2 | ||
47 | #define LED_SCROLL_LOCK_PIN B3 | ||
48 | #define LED_PIN_ON_STATE 0 | ||
49 | |||
50 | #define BACKLIGHT_PIN B7 | ||
51 | #define BACKLIGHT_BREATHING | ||
52 | #define BACKLIGHT_LEVELS 3 | ||
53 | |||
54 | /* Underlight configuration | ||
55 | */ | ||
56 | #define RGB_DI_PIN B3 | ||
57 | #define RGBLIGHT_ANIMATIONS | ||
58 | #define RGBLED_NUM 30 // Number of LEDs | ||
59 | #define RGBLIGHT_HUE_STEP 5 | ||
60 | #define RGBLIGHT_SAT_STEP 10 | ||
61 | #define RGBLIGHT_VAL_STEP 10 | ||
62 | |||
63 | /* define if matrix has ghost */ | ||
64 | //#define MATRIX_HAS_GHOST | ||
65 | |||
66 | /* Set 0 if debouncing isn't needed */ | ||
67 | #define DEBOUNCE 5 | ||
68 | |||
69 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
70 | #define LOCKING_SUPPORT_ENABLE | ||
71 | /* Locking resynchronize hack */ | ||
72 | #define LOCKING_RESYNC_ENABLE | ||
73 | |||
74 | |||
75 | /* | ||
76 | * Force NKRO | ||
77 | * | ||
78 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
79 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
80 | * makefile for this to work.) | ||
81 | * | ||
82 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
83 | * until the next keyboard reset. | ||
84 | * | ||
85 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
86 | * fully operational during normal computer usage. | ||
87 | * | ||
88 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
89 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
90 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
91 | * power-up. | ||
92 | * | ||
93 | */ | ||
94 | //#define FORCE_NKRO | ||
95 | |||
96 | /* | ||
97 | * Feature disable options | ||
98 | * These options are also useful to firmware size reduction. | ||
99 | */ | ||
100 | |||
101 | /* disable debug print */ | ||
102 | //#define NO_DEBUG | ||
103 | |||
104 | /* disable print */ | ||
105 | //#define NO_PRINT | ||
106 | |||
107 | /* disable action features */ | ||
108 | //#define NO_ACTION_LAYER | ||
109 | //#define NO_ACTION_TAPPING | ||
110 | //#define NO_ACTION_ONESHOT | ||
111 | //#define NO_ACTION_MACRO | ||
112 | //#define NO_ACTION_FUNCTION | ||