diff options
Diffstat (limited to 'keyboards/tomato/config.h')
| -rw-r--r-- | keyboards/tomato/config.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/keyboards/tomato/config.h b/keyboards/tomato/config.h new file mode 100644 index 000000000..f33c13108 --- /dev/null +++ b/keyboards/tomato/config.h | |||
| @@ -0,0 +1,51 @@ | |||
| 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 40 Percent Club | ||
| 11 | #define PRODUCT Tomato | ||
| 12 | #define DESCRIPTION A 30 key ortholinear keyboard with RGB backlighting | ||
| 13 | |||
| 14 | /* key matrix size */ | ||
| 15 | #define MATRIX_ROWS 5 | ||
| 16 | #define MATRIX_COLS 6 | ||
| 17 | |||
| 18 | /* key matrix pins */ | ||
| 19 | #define MATRIX_ROW_PINS { F7, B1, B3, B2, B6 } | ||
| 20 | #define MATRIX_COL_PINS { B4, E6, D7, C6, D4, D0 } | ||
| 21 | #define UNUSED_PINS | ||
| 22 | |||
| 23 | /* COL2ROW or ROW2COL */ | ||
| 24 | #define DIODE_DIRECTION COL2ROW | ||
| 25 | |||
| 26 | /* Set 0 if debouncing isn't needed */ | ||
| 27 | #define DEBOUNCING_DELAY 5 | ||
| 28 | |||
| 29 | /* Locking resynchronize hack */ | ||
| 30 | #define LOCKING_RESYNC_ENABLE | ||
| 31 | |||
| 32 | /* key combination for command */ | ||
| 33 | #define IS_COMMAND() ( \ | ||
| 34 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 35 | ) | ||
| 36 | |||
| 37 | /* prevent stuck modifiers */ | ||
| 38 | #define PREVENT_STUCK_MODIFIERS | ||
| 39 | |||
| 40 | /* eliminate lag on space cadet mods */ | ||
| 41 | #define PERMISSIVE_HOLD | ||
| 42 | |||
| 43 | /* setup lighting */ | ||
| 44 | #define RGB_DI_PIN B5 | ||
| 45 | #define RGBLIGHT_ANIMATIONS | ||
| 46 | #define RGBLED_NUM 30 | ||
| 47 | #define RGBLIGHT_HUE_STEP 8 | ||
| 48 | #define RGBLIGHT_SAT_STEP 8 | ||
| 49 | #define RGBLIGHT_VAL_STEP 8 | ||
| 50 | |||
| 51 | #endif | ||
