diff options
Diffstat (limited to 'keyboards/omnikeyish/config.h')
-rw-r--r-- | keyboards/omnikeyish/config.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/keyboards/omnikeyish/config.h b/keyboards/omnikeyish/config.h new file mode 100644 index 000000000..d510c64c9 --- /dev/null +++ b/keyboards/omnikeyish/config.h | |||
@@ -0,0 +1,63 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "config_common.h" | ||
4 | |||
5 | #define KEYBOARD_PCB_REV 11 | ||
6 | |||
7 | /* USB Device descriptor parameter */ | ||
8 | #define VENDOR_ID 0xFEED | ||
9 | #define PRODUCT_ID 0x0666 | ||
10 | #define DEVICE_VER 0x1337 | ||
11 | #define MANUFACTURER Henrik O. Sørensen | ||
12 | #define PRODUCT Omnikey(-ish) Keyboard | ||
13 | #define DESCRIPTION Replacement PCB for Omnikey keyboards | ||
14 | |||
15 | /* key matrix size */ | ||
16 | #define MATRIX_ROWS 6 | ||
17 | #define MATRIX_COLS 23 | ||
18 | |||
19 | /* key matrix pins */ | ||
20 | #if KEYBOARD_PCB_REV == 10 | ||
21 | #define MATRIX_ROW_PINS { D2, D3, D4, D5, D6, D7 } | ||
22 | #else | ||
23 | #define MATRIX_ROW_PINS { D2, D3, D4, D5, E6, D7 } | ||
24 | #endif | ||
25 | #define MATRIX_COL_PINS { F0, F1, F2, F3, F4, F5, F6, F7, C7, C6, C5, C4, C3, C2, C1, C0, B0, B1, B2, B3, B4, B5, B6 } | ||
26 | |||
27 | #define NUMLOCKLEDPIN E0 | ||
28 | #define CAPSLOCKLEDPIN E1 | ||
29 | #define SCROLLLOCKLEDPIN B7 | ||
30 | |||
31 | /* COL2ROW or ROW2COL */ | ||
32 | #define DIODE_DIRECTION ROW2COL | ||
33 | |||
34 | /* number of backlight levels */ | ||
35 | #ifdef BACKLIGHT_PIN | ||
36 | #define BACKLIGHT_LEVELS 0 | ||
37 | #endif | ||
38 | |||
39 | /* Set 0 if debouncing isn't needed */ | ||
40 | #define DEBOUNCE 5 | ||
41 | |||
42 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
43 | #define LOCKING_SUPPORT_ENABLE | ||
44 | |||
45 | /* Locking resynchronize hack */ | ||
46 | #define LOCKING_RESYNC_ENABLE | ||
47 | |||
48 | /* force n-key rollover*/ | ||
49 | #define FORCE_NKRO | ||
50 | |||
51 | #ifdef RGB_DI_PIN | ||
52 | #define RGBLIGHT_ANIMATIONS | ||
53 | #define RGBLED_NUM 0 | ||
54 | #define RGBLIGHT_HUE_STEP 8 | ||
55 | #define RGBLIGHT_SAT_STEP 8 | ||
56 | #define RGBLIGHT_VAL_STEP 8 | ||
57 | #endif | ||
58 | |||
59 | #define DYNAMIC_MACRO_COUNT 12 | ||
60 | #define DYNAMIC_MACRO_SIZE 48 | ||
61 | #define DYNAMIC_MACRO_EEPROM_STORAGE | ||
62 | #define DYNAMIC_MACRO_EEPROM_MAGIC_ADDR (uint16_t*)32 | ||
63 | #define DYNAMIC_MACRO_EEPROM_BLOCK0_ADDR (uint8_t*)34 | ||