We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec1ca11 commit a20d71bCopy full SHA for a20d71b
library/display.py
@@ -66,6 +66,9 @@ def initialize_display(self):
66
# Send initialization commands
67
self.lcd.InitializeComm()
68
69
+ # Turn screen on in case it was turned off previously
70
+ self.lcd.ScreenOn()
71
+
72
# Set brightness
73
self.lcd.SetBrightness(CONFIG_DATA["display"]["BRIGHTNESS"])
74
main.py
@@ -34,6 +34,9 @@
34
35
36
def clean_stop(tray_icon=None):
37
+ # Turn screen off before stopping
38
+ display.lcd.ScreenOff()
39
40
# Do not stop the program now in case data transmission was in progress
41
# Instead, ask the scheduler to empty the action queue before stopping
42
scheduler.STOPPING = True
0 commit comments