1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2026-08-18 10:22:31 +02:00

Fix black background

This commit is contained in:
Norbert Walter
2026-03-01 16:55:26 +00:00
parent 8cd193f2fc
commit 373878825c
3 changed files with 21 additions and 3 deletions
+2
View File
@@ -391,7 +391,9 @@ void OBP60Task(GwApi *api){
#ifdef DISPLAY_ST7796
getpaneldisplay().setRotation(0); // Set display orientation (horizontal)
getpaneldisplay().setPanelOffset(0, 0); // Use full native framebuffer coordinates
getpaneldisplay().fillScreen(0x0000); // Initialize full TFT screen to black (native RGB565)
getpaneldisplay().setPanelOffset(OBP_TFT_OFFSET_X, OBP_TFT_OFFSET_Y); // Restore centered 400x300 operating offset
#else
getdisplay().setRotation(0); // Set display orientation (horizontal)
#endif