Skip to content

Commit

Permalink
Restore Screen Power On
Browse files Browse the repository at this point in the history
  • Loading branch information
sieren committed Feb 7, 2021
1 parent aefc4f3 commit ca1a342
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions main/config/PlatformInject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
}; // Screensaver calls to disable screen
auto InitializeScreen = [](ScreenDriver* driver)
{
pinMode(TFT_LED, OUTPUT);
digitalWrite(TFT_LED, LOW);
driver->begin(320000000);
}; // Screen initialization routines
auto InitializePlatform = []() {};
Expand Down Expand Up @@ -68,6 +70,8 @@
};
auto InitializeScreen = [](ScreenDriver* driver)
{
pinMode(TFT_LED, OUTPUT);
digitalWrite(TFT_LED, LOW); // LOW to turn backlight on - pcb version 01-02-00
driver->begin(320000000);
}; // Screen initialization routines
auto InitializePlatform = []() {};
Expand Down
2 changes: 0 additions & 2 deletions main/tft/ScreenSaver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ namespace gfx
mpCtx(ctx)
{
mLastTouch = std::chrono::system_clock::now();
// pinMode(TFT_LED, OUTPUT);
// digitalWrite(TFT_LED, LOW); // LOW to turn backlight on - pcb version 01-02-00
}

void operator()()
Expand Down

0 comments on commit ca1a342

Please sign in to comment.