mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-08-18 18:32:30 +02:00
Fix black background
This commit is contained in:
@@ -494,7 +494,6 @@ inline void displayFirstPage() {
|
|||||||
inline void displayNextPage() {
|
inline void displayNextPage() {
|
||||||
#ifdef DISPLAY_ST7796
|
#ifdef DISPLAY_ST7796
|
||||||
if (initDisplayShadowBuffer()) {
|
if (initDisplayShadowBuffer()) {
|
||||||
getpaneldisplay().fillRect(0, 0, 480, 320, GxEPD_BLACK);
|
|
||||||
getdisplay().pushSprite(0, 0);
|
getdisplay().pushSprite(0, 0);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -391,7 +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
|
getpaneldisplay().fillScreen(0x0000); // Initialize full TFT screen to black (native RGB565)
|
||||||
#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