Change DRIVER_LED_COUNT
to {LED,RGB}_MATRIX_LED_COUNT
(#18399)
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#define LHK 33
|
||||
#define LPH 72
|
||||
|
||||
const uint8_t led_map[DRIVER_LED_TOTAL] = {
|
||||
const uint8_t led_map[RGB_MATRIX_LED_COUNT] = {
|
||||
// left side - 32 keys includes LP: key 19 is missing for ANSI layout
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 0xff, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 68, 69,
|
||||
|
||||
|
@@ -24,4 +24,4 @@
|
||||
/* The scanners already debounce for us */
|
||||
#define DEBOUNCE 0
|
||||
|
||||
#define DRIVER_LED_TOTAL 132
|
||||
#define RGB_MATRIX_LED_COUNT 132
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#define LHK 33
|
||||
#define LPH 72
|
||||
|
||||
const uint8_t led_map[DRIVER_LED_TOTAL] = {
|
||||
const uint8_t led_map[RGB_MATRIX_LED_COUNT] = {
|
||||
// left side - 33 keys
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 68, 69,
|
||||
|
||||
|
@@ -71,7 +71,7 @@ static void set_color(int index, uint8_t r, uint8_t g, uint8_t b) {
|
||||
}
|
||||
|
||||
static void set_color_all(uint8_t r, uint8_t g, uint8_t b) {
|
||||
for (int i = 0; i < DRIVER_LED_TOTAL; i++) set_color(i, r, g, b);
|
||||
for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) set_color(i, r, g, b);
|
||||
}
|
||||
|
||||
static void init(void) {}
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#include "quantum.h"
|
||||
#include "rgb_matrix.h"
|
||||
|
||||
extern const uint8_t led_map[DRIVER_LED_TOTAL];
|
||||
extern const uint8_t led_map[RGB_MATRIX_LED_COUNT];
|
||||
|
||||
void set_all_leds_to(uint8_t r, uint8_t g, uint8_t b);
|
||||
void set_led_to(int led, uint8_t r, uint8_t g, uint8_t b);
|
||||
|
Reference in New Issue
Block a user