mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-15 22:23:21 +00:00
7407347be1
* Remove rgblight_list defines with no usage * Remove rgblight_setrgb_*[_at] defines * Remove rgblight_sethsv_* defines * Remove rgblight_sethsv_noeeprom_* defines * Delete rgblight_list.h and remove all references
25 lines
722 B
C
25 lines
722 B
C
#include QMK_KEYBOARD_H
|
|
#include "split_util.h"
|
|
#include "keymap_xrows.h"
|
|
|
|
// keymaps definitions are moved to keymap_Xrows.c.
|
|
|
|
#ifdef RGBLIGHT_ENABLE
|
|
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
|
rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT);
|
|
switch (get_highest_layer(state)) {
|
|
case L_EDVORAKJP_LOWER:
|
|
rgblight_sethsv_noeeprom(HSV_RED);
|
|
break;
|
|
case L_EDVORAKJP_RAISE:
|
|
rgblight_sethsv_noeeprom(HSV_GREEN);
|
|
break;
|
|
default: // for any other layers, or the default layer
|
|
rgblight_mode(RGBLIGHT_MODE_STATIC_GRADIENT + 3);
|
|
rgblight_sethsv(HSV_RED);
|
|
break;
|
|
}
|
|
return state;
|
|
}
|
|
#endif
|