|
|
@ -137,21 +137,27 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
uint32_t layer_state_set_user(uint32_t state) {
|
|
|
|
uint32_t layer_state_set_user(uint32_t state) {
|
|
|
|
#ifdef RGBLIGHT_ENABLE
|
|
|
|
|
|
|
|
switch (biton32(state)) {
|
|
|
|
switch (biton32(state)) {
|
|
|
|
case _RAISE:
|
|
|
|
case _RAISE:
|
|
|
|
|
|
|
|
#ifdef RGBLIGHT_ENABLE
|
|
|
|
rgblight_sethsv_noeeprom (240, 255, 255);
|
|
|
|
rgblight_sethsv_noeeprom (240, 255, 255);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case _LOWER:
|
|
|
|
case _LOWER:
|
|
|
|
|
|
|
|
#ifdef RGBLIGHT_ENABLE
|
|
|
|
rgblight_sethsv_noeeprom (0, 255, 255);
|
|
|
|
rgblight_sethsv_noeeprom (0, 255, 255);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case _ADJUST:
|
|
|
|
case _ADJUST:
|
|
|
|
|
|
|
|
#ifdef RGBLIGHT_ENABLE
|
|
|
|
rgblight_sethsv_noeeprom (0, 0, 255);
|
|
|
|
rgblight_sethsv_noeeprom (0, 0, 255);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
|
|
|
|
#ifdef RGBLIGHT_ENABLE
|
|
|
|
rgblight_sethsv_noeeprom (RGB_HUE, 255, 255);
|
|
|
|
rgblight_sethsv_noeeprom (RGB_HUE, 255, 255);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return state;
|
|
|
|
return state;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|