]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/tokyo60/config.h
Keyboard: add tokyo60 (#2861)
[qmk_firmware.git] / keyboards / tokyo60 / config.h
1 #ifndef CONFIG_H
2 #define CONFIG_H
3
4 #include "config_common.h"
5
6 /* USB Device descriptor parameter */
7 #define VENDOR_ID       0xFEED
8 #define PRODUCT_ID      0x6060
9 #define DEVICE_VER      0x0001
10 #define MANUFACTURER    Tokyo Keyboard
11 #define PRODUCT         tokyo60
12 #define DESCRIPTION     q.m.k. keyboard firmware for tokyo60
13
14 /* key matrix size */
15 #define MATRIX_ROWS 5
16 #define MATRIX_COLS 14
17
18 /* number of backlight levels */
19 #define BACKLIGHT_PIN B7
20 #ifdef BACKLIGHT_PIN
21 #define BACKLIGHT_LEVELS 6
22 //#define BACKLIGHT_ON_STATE 1
23 #endif
24
25 /* COL2ROW or ROW2COL */
26 #define DIODE_DIRECTION ROW2COL
27
28 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
29 #define DEBOUNCING_DELAY 5
30
31 /* Set power consumption to work with mobile devices */
32 #define USB_MAX_POWER_CONSUMPTION 100
33
34 /* key combination for command */
35 #define IS_COMMAND() ( \
36     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
37 )
38
39 /* key matrix pins */
40 #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
41 #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B2, B5, B4, D7, D6, B3 }
42 #define UNUSED_PINS
43
44 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
45 #define LOCKING_SUPPORT_ENABLE
46
47 /* Locking resynchronize hack */
48 #define LOCKING_RESYNC_ENABLE
49
50 /* prevent stuck modifiers */
51 #define PREVENT_STUCK_MODIFIERS
52
53 #define RGB_DI_PIN F7
54 #ifdef RGB_DI_PIN
55 #define RGBLIGHT_ANIMATIONS
56 #define RGBLED_NUM 10
57 #define RGBLIGHT_HUE_STEP 12
58 #define RGBLIGHT_SAT_STEP 12
59 #define RGBLIGHT_VAL_STEP 12
60 #endif
61
62 /* For Production */
63 #define QMK_ESC_OUTPUT F0 // usually COL
64 #define QMK_ESC_INPUT D0 // usually ROW
65
66 #endif