mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-08-18 18:32:30 +02:00
Start TFT with black background
This commit is contained in:
@@ -391,6 +391,7 @@ void OBP60Task(GwApi *api){
|
|||||||
|
|
||||||
#ifdef DISPLAY_ST7796
|
#ifdef DISPLAY_ST7796
|
||||||
getpaneldisplay().setRotation(0); // Set display orientation (horizontal)
|
getpaneldisplay().setRotation(0); // Set display orientation (horizontal)
|
||||||
|
getpaneldisplay().fillRect(0, 0, 480, 320, GxEPD_BLACK); // Initialize full TFT screen to black
|
||||||
#else
|
#else
|
||||||
getdisplay().setRotation(0); // Set display orientation (horizontal)
|
getdisplay().setRotation(0); // Set display orientation (horizontal)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user