Clear OLED screen buffer at power on and reset

This commit is contained in:
sanni 2022-01-13 17:22:16 +01:00
parent 6a830e651d
commit eabb658be8
2 changed files with 11 additions and 6 deletions

View File

@ -724,7 +724,9 @@ void setup() {
display.setTextSize(1);
display.setTextColor(WHITE);
// Clear the screen buffer.
display_Clear();
display.clearDisplay();
display.setCursor(0, 0);
display.display();
#endif
#ifdef enable_serial

View File

@ -1,6 +1,10 @@
//******************************************
// !!! CHOOSE HARDWARE VERSION !!!
//******************************************
#if !(defined(HW1) || defined(HW2) || defined(HW3) || defined(HW4) || defined(SERIAL_MONITOR))
# error !!! PLEASE CHOOSE HARDWARE VERSION IN OPTIONS.H !!!
#endif
// Remove // in front of the line with your hardware version
//#define HW4
//#define HW3
@ -8,13 +12,12 @@
//#define HW1
//#define SERIAL_MONITOR
//******************************************
// !!! CHOOSE HARDWARE VERSION !!!
//
//******************************************
#if !(defined(HW1) || defined(HW2) || defined(HW3) || defined(HW4) || defined(SERIAL_MONITOR))
# error !!! PLEASE CHOOSE HARDWARE VERSION IN OPTIONS.H !!!
#endif
//******************************************
// Hardware Configurations
//******************************************
#if defined(HW4)
#define enable_LCD
#define enable_neopixel