mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-22 08:27:56 +06:00
[Keyboard] Fix oled_task_user for ffkeebs/puca (#15185)
This commit is contained in:
parent
0bcf5fb0f2
commit
6f3861fac5
|
@ -29,7 +29,8 @@ bool encoder_update_kb(uint8_t index, bool clockwise) {
|
|||
// OLED
|
||||
#ifdef OLED_ENABLE
|
||||
__attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_270; }
|
||||
__attribute__((weak)) void oled_task_user(void) {
|
||||
bool oled_task_kb(void) {
|
||||
if (!oled_task_user()) { return false; }
|
||||
// WPM-responsive animation stuff here
|
||||
# define IDLE_FRAMES 2
|
||||
# define ANIM_FRAME_DURATION 400 // how long each frame lasts in ms
|
||||
|
@ -129,5 +130,6 @@ __attribute__((weak)) void oled_task_user(void) {
|
|||
oled_write_P(PSTR("FUNC\n"), false);
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user