From e562238309fd5fa6eaf81918fab23b4fe674b5f2 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Sat, 24 Jul 2021 15:50:32 +0100 Subject: Fix up xd002 rgb keymaps (#13685) --- keyboards/xd002/keymaps/rgb_lite/rgblite.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'keyboards/xd002/keymaps/rgb_lite/rgblite.h') diff --git a/keyboards/xd002/keymaps/rgb_lite/rgblite.h b/keyboards/xd002/keymaps/rgb_lite/rgblite.h index ca98484b81..b7919f9767 100644 --- a/keyboards/xd002/keymaps/rgb_lite/rgblite.h +++ b/keyboards/xd002/keymaps/rgb_lite/rgblite.h @@ -1,26 +1,26 @@ #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); } -static void rgblight_increase_hue(void) { +static void rgblite_increase_hue(void) { static uint8_t state = 0; state = (state + 1) % 3; switch (state) { case 1: - rgblight_setrgb_red(); + rgblite_setrgb(RGB_RED); break; case 2: - rgblight_setrgb_blue(); + rgblite_setrgb(RGB_BLUE); break; default: - rgblight_setrgb_green(); + rgblite_setrgb(RGB_GREEN); break; } } -- cgit v1.2.3 From 78ccd9c201199444bc06161b05ee8d7ba9c31613 Mon Sep 17 00:00:00 2001 From: peepeetee <43021794+peepeetee@users.noreply.github.com> Date: Sat, 21 Aug 2021 22:53:49 -0500 Subject: Organize KPrepublic, K.T.E.C, xiudi boards into directories (#12159) * reset; redoing my steps; and recommit * include xd002/.noci --- keyboards/xd002/keymaps/rgb_lite/rgblite.h | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 keyboards/xd002/keymaps/rgb_lite/rgblite.h (limited to 'keyboards/xd002/keymaps/rgb_lite/rgblite.h') diff --git a/keyboards/xd002/keymaps/rgb_lite/rgblite.h b/keyboards/xd002/keymaps/rgb_lite/rgblite.h deleted file mode 100644 index b7919f9767..0000000000 --- a/keyboards/xd002/keymaps/rgb_lite/rgblite.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once - -#include "ws2812.h" -#include "color.h" - -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); -} - -static void rgblite_increase_hue(void) { - static uint8_t state = 0; - - state = (state + 1) % 3; - switch (state) { - case 1: - rgblite_setrgb(RGB_RED); - break; - case 2: - rgblite_setrgb(RGB_BLUE); - break; - default: - rgblite_setrgb(RGB_GREEN); - break; - } -} -- cgit v1.2.3