]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/dp60/config.h
[Keyboard] New CannonKeys boards and EEPROM fixes (#6968)
[qmk_firmware.git] / keyboards / dp60 / config.h
1 /**
2  * config.h
3  *
4  */
5 #pragma once
6
7 #include "config_common.h"
8
9 /* USB Device descriptor parameter */
10 #define VENDOR_ID       0x60BE
11 #define PRODUCT_ID      0x00BE
12 #define DEVICE_VER      0x0001
13 #define MANUFACTURER    astro
14 #define PRODUCT         Dumplings
15 #define DESCRIPTION     60% rgb keyboard with ble extension
16 #define LANDING_PAGE    yulei.github.io/qmk_webusb_tool/60_wkl.json
17
18 /* key matrix size */
19 #define MATRIX_ROWS 5
20 #define MATRIX_COLS 14
21 #define UNUSED_PINS
22 #define DIODE_DIRECTION COL2ROW
23
24 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
25 #define DEBOUNCE 5
26
27 /*
28  * Feature disable options
29  *  These options are also useful to firmware size reduction.
30  */
31
32 /* disable debug print */
33 //#define NO_DEBUG
34
35 /* disable print */
36 //#define NO_PRINT
37
38 /* disable action features */
39 //#define NO_ACTION_LAYER
40 //#define NO_ACTION_TAPPING
41 //#define NO_ACTION_ONESHOT
42 //#define NO_ACTION_MACRO
43 //#define NO_ACTION_FUNCTION
44
45 //rgb light setting
46 #define RGBLED_NUM      18
47 #define RGB_DI_PIN      D7
48 #define RGBLIGHT_ANIMATIONS
49 #define RGBLIGHT_HUE_STEP 8
50 #define RGBLIGHT_SAT_STEP 8
51 #define RGBLIGHT_VAL_STEP 8
52
53 //rgb matrix setting
54 #define DRIVER_ADDR_1 0b1110100
55 #define DRIVER_ADDR_2 0b1110111
56 #define DRIVER_COUNT 2
57 #define DRIVER_1_LED_TOTAL 36
58 #define DRIVER_2_LED_TOTAL 36
59 #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL
60
61 // tapping setting
62 //#define TAPPING_TERM    200
63 //#define RETRO_TAPPING
64 //#define PERMISSIVE_HOLD
65
66 #if defined(WEBUSB_ENABLE) || defined(RAW_ENABLE)
67 #define WEBUSB_KEYCOUNT  61
68 #define WEBUSB_LAYERCOUNT 2
69 //VIA
70 #define DYNAMIC_KEYMAP_LAYER_COUNT 2
71 // EEPROM usage
72
73 // TODO: refactor with new user EEPROM code (coming soon)
74 #define EEPROM_MAGIC 0x451F
75 #define EEPROM_MAGIC_ADDR 34
76 // Bump this every time we change what we store
77 // This will automatically reset the EEPROM with defaults
78 // and avoid loading invalid data from the EEPROM
79 #define EEPROM_VERSION 0x08
80 #define EEPROM_VERSION_ADDR 36
81
82 // Dynamic keymap starts after EEPROM version
83 #define DYNAMIC_KEYMAP_EEPROM_ADDR 37
84 // Dynamic macro starts after dynamic keymaps (35+(4*10*6*2)) = (35+480)
85 #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 637
86 #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 391    // 1024-DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
87 #define DYNAMIC_KEYMAP_MACRO_COUNT 16
88 #endif