qmk-keychron-q3-colemak-dh/keyboards/handwired/marek128b/ergosplit44/keymaps/default/rgb.c
Marek128b e148204efa
new 44 key split keyboard marek128b (#583)
* added marek128b-ergosplit44 keybord v0.1

* Update readme.md
2023-11-06 21:58:33 -06:00

34 lines
714 B
C

#include "quantum.h"
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max)
{
if (host_keyboard_led_state().caps_lock)
{
rgb_matrix_set_color(0, RGB_RED);
}
if (host_keyboard_led_state().num_lock)
{
rgb_matrix_set_color(1, RGB_RED);
}
if (host_keyboard_led_state().scroll_lock)
{
rgb_matrix_set_color(2, RGB_RED);
}
if (get_highest_layer(layer_state) == 1)
{
rgb_matrix_set_color(3, RGB_CYAN);
}
else if (get_highest_layer(layer_state) == 2)
{
rgb_matrix_set_color(3, RGB_MAGENTA);
}
else if (get_highest_layer(layer_state) == 3)
{
rgb_matrix_set_color(3, RGB_YELLOW);
}
return false;
}