Skip to content

Commit 819cd88

Browse files
authored
Merge pull request #135 from mathoudebine/fix/134-a-clean-shutdown-does-not-turn-off-the-leds-on-revision-b
Turn off backplate LED when program stops
2 parents 0ddd234 + 670c8d2 commit 819cd88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ def clean_stop(tray_icon=None):
5858
# Turn screen off before stopping
5959
display.lcd.ScreenOff()
6060

61+
# Turn backplate LED off for supported devices
62+
display.lcd.SetBackplateLedColor(led_color=(0, 0, 0))
63+
6164
# Do not stop the program now in case data transmission was in progress
6265
# Instead, ask the scheduler to empty the action queue before stopping
6366
scheduler.STOPPING = True

0 commit comments

Comments
 (0)