mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-13 08:25:05 +01:00
Clear OLED screen buffer at power on and reset
This commit is contained in:
parent
6a830e651d
commit
eabb658be8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user