Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added timeout option for OLED boot logo. #21823

Merged
merged 3 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added timeout option for OLED boot logo.
  • Loading branch information
luttermann committed Aug 23, 2023
commit 569cf8226b11d30f51866b707789a6991f34c14f
4 changes: 1 addition & 3 deletions keyboards/doio/kb16/kb16.c
luttermann marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,14 @@
bool oled_task_kb(void) {
static bool finished_logo = false;

if ((timer_elapsed(startup_timer) < 5000) && !finished_logo) {
if ((timer_elapsed(startup_timer) < OLED_LOGO_TIMEOUT) && !finished_logo) {
render_logo();
} else {
finished_logo = true;

if (!oled_task_user()) {
return false;
}
}

return true;
}
#endif
Expand Down
3 changes: 3 additions & 0 deletions keyboards/doio/kb16/rev2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#define I2C1_SDA_PIN B11
#define I2C_DRIVER I2CD2

/* Set timeout for displaying boot logo */
#define OLED_LOGO_TIMEOUT 5000

luttermann marked this conversation as resolved.
Show resolved Hide resolved
/* Use the custom font */
#define OLED_FONT_H "./lib/glcdfont.c"
#endif
Expand Down