diff options
author | QMK Bot <[email protected]> | 2023-03-18 17:27:54 +0000 |
---|---|---|
committer | QMK Bot <[email protected]> | 2023-03-18 17:27:54 +0000 |
commit | 6a30f319cf76b09fd69772cf51e349370ff4d3bb (patch) | |
tree | ed4b07b74f2aa78f723758229e4c1a887c23e421 /keyboards/crkbd/keymaps/toinux/rgb.c | |
parent | 01c61139b950861827f7f6c25880a2ecdb8348d0 (diff) | |
parent | 319da117b715b54d6f7092732367db62e4848181 (diff) | |
download | qmk_firmware-6a30f319cf76b09fd69772cf51e349370ff4d3bb.tar.gz qmk_firmware-6a30f319cf76b09fd69772cf51e349370ff4d3bb.zip |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/crkbd/keymaps/toinux/rgb.c')
-rw-r--r-- | keyboards/crkbd/keymaps/toinux/rgb.c | 7 |
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()) { |