]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/planck/light/config.h
Adds IS31FL3731 RGB Matrix Implementation (#2910)
[qmk_firmware.git] / keyboards / planck / light / config.h
1 #ifndef LIGHT_CONFIG_H
2 #define LIGHT_CONFIG_H
3
4 #include "config_common.h"
5
6 #undef PRODUCT
7 #define PRODUCT Planck Light
8 #undef PRODUCT_ID
9 #define PRODUCT_ID 0x6065
10 #define DEVICE_VER 0x0001
11
12 #undef MATRIX_ROW_PINS
13 #undef MATRIX_COL_PINS
14
15 #define MATRIX_ROW_PINS { B0, E7, F0, F1 }
16 #define MATRIX_COL_PINS { E6, E3, E4, D3, D4, D5, C0, A7, A6, E1, E0, D7 }
17
18 #define C6_AUDIO
19 #define B5_AUDIO
20
21 #undef BACKLIGHT_PIN
22
23 #define BACKLIGHT_PIN A5
24
25 #define NO_USB_STARTUP_CHECK
26
27 #define PLANCK_MIT_LAYOUT
28
29 // This is a 7-bit address, that gets left-shifted and bit 0
30 // set to 0 for write, 1 for read (as per I2C protocol)
31 // The address will vary depending on your wiring:
32 // 0b1110100 AD <-> GND
33 // 0b1110111 AD <-> VCC
34 // 0b1110101 AD <-> SCL
35 // 0b1110110 AD <-> SDA
36 #define DRIVER_ADDR_1 0b1110100
37 #define DRIVER_ADDR_2 0b1110110
38
39 #define DRIVER_COUNT 2
40 #define DRIVER_1_LED_TOTAL 25
41 #define DRIVER_2_LED_TOTAL 24
42 #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL
43
44
45 #endif