Skip to content

Commit

Permalink
Merge pull request #200 from mikeysklar/gizmo-backlight
Browse files Browse the repository at this point in the history
Update graphicstest_tft_gizmo.ino
  • Loading branch information
ladyada authored May 20, 2024
2 parents 9c3106a + b8154b7 commit 05c7bd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/graphicstest_tft_gizmo/graphicstest_tft_gizmo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ void setup(void) {
Serial.begin(9600);
Serial.print(F("Hello! Gizmo TFT Test"));

pinMode(TFT_BACKLIGHT, OUTPUT);
digitalWrite(TFT_BACKLIGHT, HIGH); // Backlight on

tft.init(240, 240); // Init ST7789 240x240
tft.setRotation(2);

Serial.println(F("Initialized"));

pinMode(TFT_BACKLIGHT, OUTPUT);
digitalWrite(TFT_BACKLIGHT, HIGH); // Backlight on

uint16_t time = millis();
tft.fillScreen(ST77XX_BLACK);
time = millis() - time;
Expand Down

0 comments on commit 05c7bd1

Please sign in to comment.