diff options
author | Ryan <fauxpark@gmail.com> | 2022-09-23 22:46:23 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-23 22:46:23 +1000 |
commit | 36c410592dbd35da33ccc5fd6d2a5cbf4b25a708 (patch) | |
tree | 4e75c5fc5cd31d9fdc904876906c0b409ee45d90 /keyboards/annepro2 | |
parent | d967de0df749f3be63403e07feda416ea09351d0 (diff) |
Change `DRIVER_LED_COUNT` to `{LED,RGB}_MATRIX_LED_COUNT` (#18399)
Diffstat (limited to 'keyboards/annepro2')
-rw-r--r-- | keyboards/annepro2/config_led.h | 2 | ||||
-rw-r--r-- | keyboards/annepro2/rgb_driver.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/annepro2/config_led.h b/keyboards/annepro2/config_led.h index 19a1dd4baa..e6d4dc35fb 100644 --- a/keyboards/annepro2/config_led.h +++ b/keyboards/annepro2/config_led.h @@ -18,7 +18,7 @@ #ifdef RGB_MATRIX_ENABLE -#define DRIVER_LED_TOTAL 61 +#define RGB_MATRIX_LED_COUNT 61 /* Limit animations to 62.5 FPS to avoid tearing. (1/.016 = 62.5 FPS). */ #define RGB_MATRIX_LED_FLUSH_LIMIT 16 diff --git a/keyboards/annepro2/rgb_driver.c b/keyboards/annepro2/rgb_driver.c index 1040e89f98..f1d2a3cd13 100644 --- a/keyboards/annepro2/rgb_driver.c +++ b/keyboards/annepro2/rgb_driver.c @@ -19,7 +19,7 @@ #include "rgb_matrix.h" #include "ap2_led.h" -uint8_t led_pos[DRIVER_LED_TOTAL]; +uint8_t led_pos[RGB_MATRIX_LED_COUNT]; void init(void) { unsigned int i = 0; @@ -52,7 +52,7 @@ void set_color(int index, uint8_t r, uint8_t g, uint8_t b) { } void set_color_all(uint8_t r, uint8_t g, uint8_t b) { - for (int i=0; i<DRIVER_LED_TOTAL; i++) + for (int i=0; i<RGB_MATRIX_LED_COUNT; i++) set_color(i, r, g, b); } |