Update keyboards/sthlmkb/storre/storre.c

Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com>
This commit is contained in:
Moses Hoyt 2024-01-26 10:56:14 +01:00 committed by GitHub
parent 027bfb62dc
commit 6018ccbe55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,3 +34,17 @@ bool encoder_update_kb(uint8_t index, bool clockwise) {
return true;
}
#endif
#ifdef OLED_ENABLE
bool oled_task_kb(void) {
if (!oled_task_user()) {
return false;
}
led_t led_state = host_keyboard_led_state();
oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false);
oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false);
oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false);
return true;
}
#endif