oled_text: remove blinking on OLED update

This commit is contained in:
King Kévin 2020-01-03 14:40:35 +01:00
parent ae951d8c12
commit 2fb4274ebc
1 changed files with 1 additions and 2 deletions

View File

@ -55,6 +55,7 @@ void oled_text_setup(void)
#endif
oled_text_update(); // send display buffer
};
oled_ssd1306_on(); // switch display back on
}
void oled_text_clear(void)
@ -138,8 +139,6 @@ void oled_text_line(const char* text, uint8_t line_nb)
void oled_text_update(void)
{
if (oled_text_present) { // only do something if the display is present
oled_ssd1306_off(); // switch display off to not see the update
oled_ssd1306_display(oled_text_display, LENGTH(oled_text_display)); // send current display buffer
oled_ssd1306_on(); // switch display back on
}
}