]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/dp60/config.h
Project Keyboard Alice PCB - Indicator LEDs and keymap update (#7442)
[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
17 /* key matrix size */
18 #define MATRIX_ROWS 5
19 #define MATRIX_COLS 14
20 #define UNUSED_PINS
21 #define DIODE_DIRECTION COL2ROW
22
23 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
24 #define DEBOUNCE 5
25
26 /*
27  * Feature disable options
28  *  These options are also useful to firmware size reduction.
29  */
30
31 /* disable debug print */
32 //#define NO_DEBUG
33
34 /* disable print */
35 //#define NO_PRINT
36
37 //rgb light setting
38 #define RGBLED_NUM      18
39 #define RGB_DI_PIN      D7
40 #define RGBLIGHT_ANIMATIONS
41 #define RGBLIGHT_HUE_STEP 8
42 #define RGBLIGHT_SAT_STEP 8
43 #define RGBLIGHT_VAL_STEP 8
44
45 //rgb matrix setting
46 #define DRIVER_ADDR_1 0b1110100
47 #define DRIVER_ADDR_2 0b1110111
48 #define DRIVER_COUNT 2
49 #define DRIVER_1_LED_TOTAL 36
50 #define DRIVER_2_LED_TOTAL 36
51 #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
52
53 #if defined(RAW_ENABLE)
54 //VIA
55 #define DYNAMIC_KEYMAP_LAYER_COUNT 2
56 // EEPROM usage
57
58 // TODO: refactor with new user EEPROM code (coming soon)
59 #define EEPROM_MAGIC 0x451F
60 #define EEPROM_MAGIC_ADDR 34
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 36
66
67 // Dynamic keymap starts after EEPROM version
68 #define DYNAMIC_KEYMAP_EEPROM_ADDR 37
69 // Dynamic macro starts after dynamic keymaps (35+(4*10*6*2)) = (35+480)
70 #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 637
71 #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 391    // 1024-DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
72 #define DYNAMIC_KEYMAP_MACRO_COUNT 16
73 #endif