summaryrefslogtreecommitdiff
path: root/keyboards/xd002
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/xd002')
-rw-r--r--keyboards/xd002/keymaps/multilayer_rgb/keymap.c6
-rw-r--r--keyboards/xd002/keymaps/multilayer_rgb/rgblite.h4
-rw-r--r--keyboards/xd002/keymaps/rgb_lite/keymap.c4
-rw-r--r--keyboards/xd002/keymaps/rgb_lite/rgblite.h12
-rw-r--r--keyboards/xd002/rules.mk2
5 files changed, 14 insertions, 14 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);
}
diff --git a/keyboards/xd002/keymaps/rgb_lite/keymap.c b/keyboards/xd002/keymaps/rgb_lite/keymap.c
index ed9185e3b5..a795ca8a6d 100644
--- a/keyboards/xd002/keymaps/rgb_lite/keymap.c
+++ b/keyboards/xd002/keymaps/rgb_lite/keymap.c
@@ -16,7 +16,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {
switch (keycode) {
case RGB_HUI:
- rgblight_increase_hue();
+ rgblite_increase_hue();
break;
case QMKURL:
SEND_STRING("https://qmk.fm/" SS_TAP(X_ENTER));
@@ -27,5 +27,5 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
void keyboard_post_init_user(void) {
- rgblight_increase_hue();
+ rgblite_increase_hue();
}
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;
}
}
diff --git a/keyboards/xd002/rules.mk b/keyboards/xd002/rules.mk
index 595743a303..51c4ea1e0f 100644
--- a/keyboards/xd002/rules.mk
+++ b/keyboards/xd002/rules.mk
@@ -9,7 +9,7 @@ PROGRAM_CMD = micronucleus --run $(BUILD_DIR)/$(TARGET).hex
# Build Options
# change yes to no to disable
#
-BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
+BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
MOUSEKEY_ENABLE = no # Mouse keys
EXTRAKEY_ENABLE = no # Audio control and System control
CONSOLE_ENABLE = no # Console for debug