aboutsummaryrefslogtreecommitdiff
path: root/keyboards/handwired/promethium/rgbsps.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/promethium/rgbsps.c')
-rw-r--r--keyboards/handwired/promethium/rgbsps.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/keyboards/handwired/promethium/rgbsps.c b/keyboards/handwired/promethium/rgbsps.c
index 7dc26f4a5e..07ece69166 100644
--- a/keyboards/handwired/promethium/rgbsps.c
+++ b/keyboards/handwired/promethium/rgbsps.c
@@ -2,8 +2,6 @@
#include "ws2812.h"
#include "rgbsps.h"
-rgb_led_t led[RGBSPS_NUM];
-
void keyboard_pre_init_kb(void) {
ws2812_init();
@@ -11,9 +9,7 @@ void keyboard_pre_init_kb(void) {
}
void rgbsps_set(uint8_t index, uint8_t r, uint8_t g, uint8_t b) {
- led[index].r = r;
- led[index].g = g;
- led[index].b = b;
+ ws2812_set_color(index, r, g, b);
}
void rgbsps_setall(uint8_t r, uint8_t g, uint8_t b) {
@@ -27,7 +23,7 @@ void rgbsps_turnoff(void) {
}
void rgbsps_send(void) {
- ws2812_setleds(led, RGBSPS_NUM);
+ ws2812_flush();
}
void rgbsps_sethsv(uint8_t index, uint16_t hue, uint8_t sat, uint8_t val) {