mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-04-22 23:21:27 +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
|
my_capsoff_layer
|
||||||
);
|
);
|
||||||
|
|
||||||
void keyboard_post_init_user(void){
|
void keyboard_post_init_kb(void) {
|
||||||
rgblight_layers = my_rgb_layers;
|
rgblight_layers = my_rgb_layers;
|
||||||
|
|
||||||
|
keyboard_post_init_user();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool led_update_kb(led_t led_state) {
|
||||||
bool led_update_user(led_t led_state) {
|
bool res = led_update_user(led_state);
|
||||||
rgblight_set_layer_state(0, led_state.caps_lock);
|
if(res) {
|
||||||
rgblight_set_layer_state(1, !led_state.caps_lock);
|
rgblight_set_layer_state(0, led_state.caps_lock);
|
||||||
return true;
|
rgblight_set_layer_state(1, !led_state.caps_lock);
|
||||||
|
}
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user