summaryrefslogtreecommitdiffstats
path: root/keyboards/crkbd/keymaps/toinux/rgb.c
diff options
context:
space:
mode:
authortoinux <toinux@gmail.com>2023-03-18 18:26:42 +0100
committerGitHub <noreply@github.com>2023-03-18 11:26:42 -0600
commit319da117b715b54d6f7092732367db62e4848181 (patch)
treed3daa5830fad4368ff8a55a7a464d131137ba487 /keyboards/crkbd/keymaps/toinux/rgb.c
parentf8e89a1fe488ff6da8b53756c544912cfd7c2803 (diff)
[Keymap] crkbd toinux update (#19673)
Diffstat (limited to 'keyboards/crkbd/keymaps/toinux/rgb.c')
-rw-r--r--keyboards/crkbd/keymaps/toinux/rgb.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/keyboards/crkbd/keymaps/toinux/rgb.c b/keyboards/crkbd/keymaps/toinux/rgb.c
index 9a7feabad9..2b1a226602 100644
--- a/keyboards/crkbd/keymaps/toinux/rgb.c
+++ b/keyboards/crkbd/keymaps/toinux/rgb.c
@@ -23,6 +23,7 @@ static const char gaming2_leds[] = {23, 18, 17, 10, 9, 22, 19, 16, 11, 8};
static const char nav_leds[] = {38, 43, 44, 46};
static const char fun_leds[] = {45, 44, 37, 46, 43, 38, 47, 42, 39, 40};
static const char mouse_leds[] = {11, 16, 17, 19};
+static const char adjust_leds[] = {6, 33};
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
if (host_keyboard_led_state().caps_lock) {
@@ -32,7 +33,7 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
case _GAMING:
if (is_keyboard_master()) {
for (uint8_t i = 0; i < 4; i++) {
- rgb_matrix_set_color(gaming_leds[i], RGB_RED);
+ rgb_matrix_set_color(gaming_leds[i], 0x88, 0x00, 0x00);
}
}
break;
@@ -54,7 +55,9 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
}
break;
case _ADJUST:
- rgb_matrix_set_color(6, RGB_RED);
+ for (uint8_t i = 0; i < 2; i++) {
+ rgb_matrix_set_color(adjust_leds[i], RGB_RED);
+ }
break;
case _MOUSE:
if (is_keyboard_master()) {