Commit | Line | Data |
---|---|---|
979ac0d8 | 1 | #pragma once |
b806cc9e A |
2 | |
3 | #include "config_common.h" | |
4 | ||
5 | /* USB Device descriptor parameter */ | |
979ac0d8 Z |
6 | #define VENDOR_ID 0x5436 // "T6" |
7 | #define PRODUCT_ID 0x6060 // Tokyo60 | |
b806cc9e A |
8 | #define DEVICE_VER 0x0001 |
9 | #define MANUFACTURER Tokyo Keyboard | |
979ac0d8 Z |
10 | #define PRODUCT Tokyo60 |
11 | #define DESCRIPTION q.m.k. keyboard firmware for Tokyo60 | |
b806cc9e A |
12 | |
13 | /* key matrix size */ | |
14 | #define MATRIX_ROWS 5 | |
15 | #define MATRIX_COLS 14 | |
16 | ||
17 | /* number of backlight levels */ | |
18 | #define BACKLIGHT_PIN B7 | |
19 | #ifdef BACKLIGHT_PIN | |
20 | #define BACKLIGHT_LEVELS 6 | |
21 | //#define BACKLIGHT_ON_STATE 1 | |
22 | #endif | |
23 | ||
24 | /* COL2ROW or ROW2COL */ | |
25 | #define DIODE_DIRECTION ROW2COL | |
26 | ||
27 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | |
faaaa134 | 28 | #define DEBOUNCE 5 |
b806cc9e A |
29 | |
30 | /* Set power consumption to work with mobile devices */ | |
31 | #define USB_MAX_POWER_CONSUMPTION 100 | |
32 | ||
b806cc9e A |
33 | /* key matrix pins */ |
34 | #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 } | |
35 | #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B2, B5, B4, D7, D6, B3 } | |
36 | #define UNUSED_PINS | |
37 | ||
38 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | |
39 | #define LOCKING_SUPPORT_ENABLE | |
40 | ||
41 | /* Locking resynchronize hack */ | |
42 | #define LOCKING_RESYNC_ENABLE | |
43 | ||
b806cc9e A |
44 | #define RGB_DI_PIN F7 |
45 | #ifdef RGB_DI_PIN | |
46 | #define RGBLIGHT_ANIMATIONS | |
47 | #define RGBLED_NUM 10 | |
48 | #define RGBLIGHT_HUE_STEP 12 | |
49 | #define RGBLIGHT_SAT_STEP 12 | |
50 | #define RGBLIGHT_VAL_STEP 12 | |
51 | #endif | |
52 | ||
53 | /* For Production */ | |
54 | #define QMK_ESC_OUTPUT F0 // usually COL | |
55 | #define QMK_ESC_INPUT D0 // usually ROW |