Skip to content

Commit

Permalink
Remove lcd from DisplayApp
Browse files Browse the repository at this point in the history
  • Loading branch information
Riksu9000 authored and JF002 committed May 8, 2022
1 parent 4229386 commit 6dac0a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/displayapp/DisplayApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,10 @@ void DisplayApp::Refresh() {
brightnessController.Lower();
vTaskDelay(100);
}
lcd.DisplayOff();
PushMessageToSystemTask(Pinetime::System::Messages::OnDisplayTaskSleeping);
state = States::Idle;
break;
case Messages::GoToRunning:
lcd.DisplayOn();
brightnessController.Restore();
state = States::Running;
break;
Expand Down
6 changes: 3 additions & 3 deletions src/drivers/St7789.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ namespace Pinetime {

void DrawBuffer(uint16_t x, uint16_t y, uint16_t width, uint16_t height, const uint8_t* data, size_t size);

void DisplayOn();
void DisplayOff();

void Sleep();
void Wakeup();

Expand All @@ -42,6 +39,9 @@ namespace Pinetime {
void DisplayInversionOn();
void NormalModeOn();
void WriteToRam();
void DisplayOn();
void DisplayOff();

void SetAddrWindow(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1);
void SetVdv();
void WriteCommand(uint8_t cmd);
Expand Down

0 comments on commit 6dac0a6

Please sign in to comment.