Skip to content

Commit 6dac0a6

Browse files
Riksu9000JF002
authored andcommitted
Remove lcd from DisplayApp
1 parent 4229386 commit 6dac0a6

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/displayapp/DisplayApp.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,10 @@ void DisplayApp::Refresh() {
163163
brightnessController.Lower();
164164
vTaskDelay(100);
165165
}
166-
lcd.DisplayOff();
167166
PushMessageToSystemTask(Pinetime::System::Messages::OnDisplayTaskSleeping);
168167
state = States::Idle;
169168
break;
170169
case Messages::GoToRunning:
171-
lcd.DisplayOn();
172170
brightnessController.Restore();
173171
state = States::Running;
174172
break;

src/drivers/St7789.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ namespace Pinetime {
2222

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

25-
void DisplayOn();
26-
void DisplayOff();
27-
2825
void Sleep();
2926
void Wakeup();
3027

@@ -42,6 +39,9 @@ namespace Pinetime {
4239
void DisplayInversionOn();
4340
void NormalModeOn();
4441
void WriteToRam();
42+
void DisplayOn();
43+
void DisplayOff();
44+
4545
void SetAddrWindow(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1);
4646
void SetVdv();
4747
void WriteCommand(uint8_t cmd);

0 commit comments

Comments
 (0)