skeletyl: replace rgb layer indicator
This commit is contained in:
parent
f184768949
commit
e8fbfd087d
1 changed files with 5 additions and 10 deletions
|
@ -11,23 +11,18 @@ void keyboard_post_init_user(void) {
|
||||||
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
||||||
for (uint8_t i = led_min; i < led_max; i++) {
|
for (uint8_t i = led_min; i < led_max; i++) {
|
||||||
switch(get_highest_layer(layer_state|default_layer_state)) {
|
switch(get_highest_layer(layer_state|default_layer_state)) {
|
||||||
case 1:
|
// https://colorpicker.me/#fff115
|
||||||
rgblight_sethsv(4, 75, 150); // warmwhite
|
|
||||||
break;
|
|
||||||
case 2:
|
case 2:
|
||||||
rgblight_sethsv(39, 100, 150); // orange
|
rgb_matrix_set_color(2, 255, 165, 0); // orange
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
rgblight_sethsv(219, 96, 150); // blue
|
rgb_matrix_set_color(2, 0, 90, 255); // blue
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
rgblight_sethsv(120, 45, 150); // green
|
rgb_matrix_set_color(2, 4, 147, 4); // green
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
rgblight_sethsv(55, 80, 150); // yellow
|
rgb_matrix_set_color(2, 255, 241, 21); // yellow
|
||||||
break;
|
|
||||||
default:
|
|
||||||
rgblight_sethsv(4, 75, 150); // warmwhite
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue