mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-04-09 23:35:44 +00:00
Update keyboards/sakura_workshop/fuji75/fuji75.c
Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
parent
1145da8a5e
commit
41a21bf7ee
@ -30,13 +30,17 @@ const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
|
||||
my_capsoff_layer
|
||||
);
|
||||
|
||||
void keyboard_post_init_user(void){
|
||||
void keyboard_post_init_kb(void) {
|
||||
rgblight_layers = my_rgb_layers;
|
||||
|
||||
keyboard_post_init_user();
|
||||
}
|
||||
|
||||
|
||||
bool led_update_user(led_t led_state) {
|
||||
rgblight_set_layer_state(0, led_state.caps_lock);
|
||||
rgblight_set_layer_state(1, !led_state.caps_lock);
|
||||
return true;
|
||||
bool led_update_kb(led_t led_state) {
|
||||
bool res = led_update_user(led_state);
|
||||
if(res) {
|
||||
rgblight_set_layer_state(0, led_state.caps_lock);
|
||||
rgblight_set_layer_state(1, !led_state.caps_lock);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user