aboutsummaryrefslogtreecommitdiff
path: root/keyboards/terrazzo/terrazzo.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/terrazzo/terrazzo.c')
-rw-r--r--keyboards/terrazzo/terrazzo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/keyboards/terrazzo/terrazzo.c b/keyboards/terrazzo/terrazzo.c
index f079ded4d..1319b05e7 100644
--- a/keyboards/terrazzo/terrazzo.c
+++ b/keyboards/terrazzo/terrazzo.c
@@ -17,7 +17,6 @@
17#include "terrazzo.h" 17#include "terrazzo.h"
18 18
19#ifdef LED_MATRIX_ENABLE 19#ifdef LED_MATRIX_ENABLE
20 #include "is31fl3731-simple.h"
21 #include <math.h> 20 #include <math.h>
22 #include "print.h" 21 #include "print.h"
23 #include "quantum.h" 22 #include "quantum.h"
@@ -59,7 +58,7 @@ uint8_t terrazzo_effect = 1;
59void terrazzo_set_pixel(uint8_t x, uint8_t y, uint8_t value) { 58void terrazzo_set_pixel(uint8_t x, uint8_t y, uint8_t value) {
60 uint8_t target = y * LED_MATRIX_COLS + x; 59 uint8_t target = y * LED_MATRIX_COLS + x;
61 if (target < DRIVER_LED_TOTAL && target >= 0) { 60 if (target < DRIVER_LED_TOTAL && target >= 0) {
62 led_matrix_set_index_value(y * LED_MATRIX_COLS + x, value); 61 led_matrix_set_value(y * LED_MATRIX_COLS + x, value);
63 } 62 }
64} 63}
65 64
@@ -113,7 +112,7 @@ void terrazzo_mode_off(void) {
113void terrazzo_render(void) { 112void terrazzo_render(void) {
114 switch(terrazzo_effect) { 113 switch(terrazzo_effect) {
115 case TERRAZZO_NONE: 114 case TERRAZZO_NONE:
116 led_matrix_set_index_value_all(0); 115 led_matrix_set_value_all(0);
117 break; 116 break;
118 #define TERRAZZO_EFFECT(name, ...) \ 117 #define TERRAZZO_EFFECT(name, ...) \
119 case TERRAZZO_EFFECT_##name: \ 118 case TERRAZZO_EFFECT_##name: \