Formatting
This commit is contained in:
parent
03101b1624
commit
54b94fd016
19 changed files with 43 additions and 36 deletions
|
|
@ -10,6 +10,9 @@
|
|||
// Initialize the font
|
||||
static painter_font_handle_t thintel;
|
||||
|
||||
painter_device_t lcd;
|
||||
painter_device_t lcd_surface;
|
||||
|
||||
// This function is ran on bootup of the keyboard
|
||||
bool module_post_init_user(void) {
|
||||
// Load the font in to memory.
|
||||
|
|
@ -55,12 +58,12 @@ bool display_module_housekeeping_task_user(bool second_display) {
|
|||
|
||||
// Make sure that the second display loads correctly, sometimes it takes a little while for the keyboard to know it has a second display.
|
||||
// So we reset the state and make it run again until the secondary display is drawn correctly
|
||||
if(second_display && !second_display_set) {
|
||||
if(second_display && !second_display_set) {
|
||||
display_set = false;
|
||||
}
|
||||
|
||||
// Move surface to lcd, this actually writes the content to the physical display
|
||||
qp_surface_draw(lcd_surface, lcd, 0, 0, 0);
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue