3 #include "config_common.h"
5 /* USB Device descriptor parameter */
6 #define VENDOR_ID 0x4443 // "DC" = Don Chiou
7 #define PRODUCT_ID 0x5350 // "SP" = Snagpad
8 #define DEVICE_VER 0x0001
9 #define MANUFACTURER Flehrad
10 #define PRODUCT Snagpad
11 #define DESCRIPTION A Pro Micro-Powered 5x4 macropad/numpad
18 #define MATRIX_ROW_PINS { D1, D0, D4, C6, D7 }
19 #define MATRIX_COL_PINS { F4, F5, F6, F7 }
22 /* COL2ROW or ROW2COL */
23 #define DIODE_DIRECTION COL2ROW
25 /* number of backlight levels */
28 #define BACKLIGHT_LEVELS 3
31 /* Set 0 if debouncing isn't needed */
34 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
35 #define LOCKING_SUPPORT_ENABLE
37 /* Locking resynchronize hack */
38 #define LOCKING_RESYNC_ENABLE
40 /* prevent stuck modifiers */
41 //#define STRICT_LAYER_RELEASE
44 #define RGBLIGHT_ANIMATIONS
46 #define RGBLIGHT_HUE_STEP 8
47 #define RGBLIGHT_SAT_STEP 8
48 #define RGBLIGHT_VAL_STEP 8
51 // Does not use WT_MONO_BACKLIGHT
52 // #define WT_MONO_BACKLIGHT
54 #define DYNAMIC_KEYMAP_LAYER_COUNT 4
58 // TODO: refactor with new user EEPROM code (coming soon)
59 #define EEPROM_MAGIC 0x451F
60 #define EEPROM_MAGIC_ADDR 32
61 // Bump this every time we change what we store
62 // This will automatically reset the EEPROM with defaults
63 // and avoid loading invalid data from the EEPROM
64 #define EEPROM_VERSION 0x08
65 #define EEPROM_VERSION_ADDR 34
67 // Dynamic keymap starts after EEPROM version
68 #define DYNAMIC_KEYMAP_EEPROM_ADDR 35
69 // Dynamic macro starts after dynamic keymaps (35+(4*5*4*2)) = (35+160)
70 #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 195
71 #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 829
72 #define DYNAMIC_KEYMAP_MACRO_COUNT 16