diff options
Diffstat (limited to 'keyboards/terrazzo/terrazzo.c')
-rw-r--r-- | keyboards/terrazzo/terrazzo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/terrazzo/terrazzo.c b/keyboards/terrazzo/terrazzo.c index e8a4e03fc..f079ded4d 100644 --- a/keyboards/terrazzo/terrazzo.c +++ b/keyboards/terrazzo/terrazzo.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include "print.h" | 22 | #include "print.h" |
23 | #include "quantum.h" | 23 | #include "quantum.h" |
24 | 24 | ||
25 | const is31_led g_is31_leds[LED_DRIVER_LED_COUNT] = { | 25 | const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { |
26 | /* Refer to IS31 manual for these locations | 26 | /* Refer to IS31 manual for these locations |
27 | * https://cdn-learn.adafruit.com/downloads/pdf/adafruit-15x7-7x15-charlieplex-led-matrix-charliewing-featherwing.pdf | 27 | * https://cdn-learn.adafruit.com/downloads/pdf/adafruit-15x7-7x15-charlieplex-led-matrix-charliewing-featherwing.pdf |
28 | */ | 28 | */ |
@@ -58,7 +58,7 @@ uint8_t terrazzo_effect = 1; | |||
58 | 58 | ||
59 | void terrazzo_set_pixel(uint8_t x, uint8_t y, uint8_t value) { | 59 | void terrazzo_set_pixel(uint8_t x, uint8_t y, uint8_t value) { |
60 | uint8_t target = y * LED_MATRIX_COLS + x; | 60 | uint8_t target = y * LED_MATRIX_COLS + x; |
61 | if (target < LED_DRIVER_LED_COUNT && target >= 0) { | 61 | if (target < DRIVER_LED_TOTAL && target >= 0) { |
62 | led_matrix_set_index_value(y * LED_MATRIX_COLS + x, value); | 62 | led_matrix_set_index_value(y * LED_MATRIX_COLS + x, value); |
63 | } | 63 | } |
64 | } | 64 | } |
@@ -85,10 +85,10 @@ void terrazzo_scroll_pixel(bool clockwise) { | |||
85 | terrazzo_led_index = terrazzo_led_index - 1; | 85 | terrazzo_led_index = terrazzo_led_index - 1; |
86 | } | 86 | } |
87 | 87 | ||
88 | if (terrazzo_led_index >= LED_DRIVER_LED_COUNT) { | 88 | if (terrazzo_led_index >= DRIVER_LED_TOTAL) { |
89 | terrazzo_led_index = 0; | 89 | terrazzo_led_index = 0; |
90 | } else if (terrazzo_led_index <= 0 ) { | 90 | } else if (terrazzo_led_index <= 0 ) { |
91 | terrazzo_led_index = LED_DRIVER_LED_COUNT - 1; | 91 | terrazzo_led_index = DRIVER_LED_TOTAL - 1; |
92 | } | 92 | } |
93 | } | 93 | } |
94 | 94 | ||