From 63ec18e2b11aeee6b4f5f182714041d921cee057 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 18 Mar 2024 11:11:47 +0100 Subject: [PATCH] skeletyl: fix led layer index --- .../bastardkb/skeletyl/keymaps/quotengrote/keymap.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c b/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c index 7c5d10a239..9c9077a55f 100644 --- a/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c +++ b/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c @@ -12,16 +12,19 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { for (uint8_t i = led_min; i < led_max; i++) { switch(get_highest_layer(layer_state|default_layer_state)) { // https://colorpicker.me/#fff115 - case 2: + case 0: + rgblight_sethsv(4, 75, 150); // warmhite (werte = hue, saturation, value) + break; + case 1: rgb_matrix_set_color(2, 255, 165, 0); // orange break; - case 3: + case 2: rgb_matrix_set_color(2, 0, 90, 255); // blue break; - case 4: + case 3: rgb_matrix_set_color(2, 4, 147, 4); // green break; - case 5: + case 4: rgb_matrix_set_color(2, 255, 241, 21); // yellow break; }