Skip to content

Commit

Permalink
change tft clear() to fillScreen() (#3077)
Browse files Browse the repository at this point in the history
Maintains compatability with ESPI driver.

Co-authored-by: Jonathan Bennett <[email protected]>
  • Loading branch information
thebentern and jp-bennett authored Jan 11, 2024
1 parent ccb5485 commit e9bde80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/graphics/TFTDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ TFTDisplay::TFTDisplay(uint8_t address, int sda, int scl, OLEDDISPLAY_GEOMETRY g
void TFTDisplay::display(bool fromBlank)
{
if (fromBlank)
tft->clear();
tft->fillScreen(TFT_BLACK);
// tft->clear();
concurrency::LockGuard g(spiLock);

uint16_t x, y;
Expand Down

0 comments on commit e9bde80

Please sign in to comment.