snapshot
This commit is contained in:
@@ -6,24 +6,7 @@ void DisplayManager::begin() {
|
||||
setBacklight(true);
|
||||
|
||||
_tft.init();
|
||||
_tft.setRotation(1); // landscape: 480x320
|
||||
|
||||
// === DIAGNOSTIC: most basic text rendering ===
|
||||
_tft.fillScreen(TFT_BLUE);
|
||||
_tft.setTextColor(TFT_WHITE); // no background color arg
|
||||
_tft.setTextFont(1); // explicitly set GLCD font
|
||||
_tft.setTextSize(3);
|
||||
_tft.setCursor(10, 10); // absolute position, no datum
|
||||
_tft.print("HELLO");
|
||||
_tft.setCursor(10, 60);
|
||||
_tft.print("W:");
|
||||
_tft.print(_tft.width());
|
||||
_tft.setCursor(10, 110);
|
||||
_tft.print("H:");
|
||||
_tft.print(_tft.height());
|
||||
delay(5000);
|
||||
// === END DIAGNOSTIC ===
|
||||
|
||||
_tft.setRotation(1);
|
||||
_tft.fillScreen(COL_BLACK);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user