diff options
Diffstat (limited to 'keyboards/xd002/keymaps/multilayer_rgb')
-rw-r--r-- | keyboards/xd002/keymaps/multilayer_rgb/keymap.c | 6 | ||||
-rw-r--r-- | keyboards/xd002/keymaps/multilayer_rgb/rgblite.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/keyboards/xd002/keymaps/multilayer_rgb/keymap.c b/keyboards/xd002/keymaps/multilayer_rgb/keymap.c index 01a96119e5..4ae28fd91b 100644 --- a/keyboards/xd002/keymaps/multilayer_rgb/keymap.c +++ b/keyboards/xd002/keymaps/multilayer_rgb/keymap.c @@ -158,10 +158,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) layer_state_t layer_state_set_user(layer_state_t state) { switch (get_highest_layer(state)) { case _FUNC: - rgblight_setrgb_red(); + rgblite_setrgb(RGB_RED); break; default: // for any other layers, or the default layer - rgblight_setrgb_green(); + rgblite_setrgb(RGB_GREEN); break; } return state; @@ -169,5 +169,5 @@ layer_state_t layer_state_set_user(layer_state_t state) { // default color void keyboard_post_init_user(void) { - rgblight_setrgb_green(); + rgblite_setrgb(RGB_GREEN); } diff --git a/keyboards/xd002/keymaps/multilayer_rgb/rgblite.h b/keyboards/xd002/keymaps/multilayer_rgb/rgblite.h index ddc61d5f43..8a14a8f956 100644 --- a/keyboards/xd002/keymaps/multilayer_rgb/rgblite.h +++ b/keyboards/xd002/keymaps/multilayer_rgb/rgblite.h @@ -1,9 +1,9 @@ #pragma once #include "ws2812.h" -#include "rgblight_list.h" +#include "color.h" -static inline void rgblight_setrgb(uint8_t _r, uint8_t _g, uint8_t _b) { +static inline void rgblite_setrgb(uint8_t _r, uint8_t _g, uint8_t _b) { LED_TYPE leds[RGBLED_NUM] = {{.r = _r, .g = _g, .b = _b}, {.r = _r, .g = _g, .b = _b}}; ws2812_setleds(leds, RGBLED_NUM); } |