diff options
author | Wilba <Jason.S.Williams@gmail.com> | 2019-01-21 06:01:12 +1100 |
---|---|---|
committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-01-20 11:01:12 -0800 |
commit | 6393135afaa8b99832f547bcb5e8aafd077a1c9e (patch) | |
tree | 8110d45610f188c2c157bf146be0516b417760b9 /keyboards/snagpad/config.h | |
parent | 8df044b86828a374fc2c872c2bedc2f4b567f5bf (diff) | |
download | qmk_firmware-6393135afaa8b99832f547bcb5e8aafd077a1c9e.tar.gz |
Added VIA Configurator support to Snagpad (#4890)
Diffstat (limited to 'keyboards/snagpad/config.h')
-rw-r--r-- | keyboards/snagpad/config.h | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/keyboards/snagpad/config.h b/keyboards/snagpad/config.h index a14ead67f..03906f33f 100644 --- a/keyboards/snagpad/config.h +++ b/keyboards/snagpad/config.h @@ -3,8 +3,8 @@ #include "config_common.h" /* USB Device descriptor parameter */ -#define VENDOR_ID 0xFEED -#define PRODUCT_ID 0x6060 +#define VENDOR_ID 0x4443 // "DC" = Don Chiou +#define PRODUCT_ID 0x5350 // "SP" = Snagpad #define DEVICE_VER 0x0001 #define MANUFACTURER Flehrad #define PRODUCT Snagpad @@ -54,3 +54,25 @@ #define RGBLIGHT_VAL_STEP 8 #endif +// Does not use WT_MONO_BACKLIGHT +// #define WT_MONO_BACKLIGHT + +#define DYNAMIC_KEYMAP_LAYER_COUNT 4 + +// EEPROM usage + +// TODO: refactor with new user EEPROM code (coming soon) +#define EEPROM_MAGIC 0x451F +#define EEPROM_MAGIC_ADDR 32 +// Bump this every time we change what we store +// This will automatically reset the EEPROM with defaults +// and avoid loading invalid data from the EEPROM +#define EEPROM_VERSION 0x08 +#define EEPROM_VERSION_ADDR 34 + +// Dynamic keymap starts after EEPROM version +#define DYNAMIC_KEYMAP_EEPROM_ADDR 35 +// Dynamic macro starts after dynamic keymaps (35+(4*5*4*2)) = (35+160) +#define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 195 +#define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 829 +#define DYNAMIC_KEYMAP_MACRO_COUNT 16
\ No newline at end of file |