]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/tradestation/config.h
Keyboard: add snagpad and trainstation keyboards (#4755)
[qmk_firmware.git] / keyboards / handwired / tradestation / config.h
1 #pragma once
2
3 #include "config_common.h"
4
5 /* USB Device descriptor parameter */
6 #define VENDOR_ID       0xFEED
7 #define PRODUCT_ID      0x6060
8 #define DEVICE_VER      0x0001
9 #define MANUFACTURER    Flehrad
10 #define PRODUCT         Trade Station
11  #define DESCRIPTION     A Pro Micro-powered macropad layout by Didier Luximon. 1/8U gap space top two rows and 1/4U gap between 2U bottom two rows.
12
13 /* key matrix size */
14 #define MATRIX_ROWS 4
15 #define MATRIX_COLS 4
16
17 /* key matrix pins */
18 #define MATRIX_ROW_PINS { D1, C6, D4, D0 }
19 #define MATRIX_COL_PINS { F7, B1, D7, E6 }
20 #define UNUSED_PINS
21
22 /* COL2ROW or ROW2COL */
23 #define DIODE_DIRECTION COL2ROW
24
25 /* number of backlight levels */
26
27 #ifdef BACKLIGHT_PIN
28 #define BACKLIGHT_LEVELS 3
29 #endif
30
31 /* Set 0 if debouncing isn't needed */
32 #define DEBOUNCING_DELAY 5
33
34 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
35 #define LOCKING_SUPPORT_ENABLE
36
37 /* Locking resynchronize hack */
38 #define LOCKING_RESYNC_ENABLE
39
40 /* key combination for command */
41 #define IS_COMMAND() ( \
42     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
43 )
44
45
46 #ifdef RGB_DI_PIN
47 #define RGBLIGHT_ANIMATIONS
48  #define RGBLED_NUM 5
49 #define RGBLIGHT_HUE_STEP 8
50 #define RGBLIGHT_SAT_STEP 8
51 #define RGBLIGHT_VAL_STEP 8
52 #endif