Skip to content

Turn off backplate LED when program stops #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

mathoudebine
Copy link
Owner

No description provided.

@mathoudebine mathoudebine linked an issue Jan 6, 2023 that may be closed by this pull request
@mathoudebine mathoudebine force-pushed the fix/134-a-clean-shutdown-does-not-turn-off-the-leds-on-revision-b branch from 3a22a3b to 670c8d2 Compare January 6, 2023 13:12
@@ -58,6 +58,9 @@ def clean_stop(tray_icon=None):
# Turn screen off before stopping
display.lcd.ScreenOff()

# Turn backplate LED off for supported devices
display.lcd.SetBackplateLedColor(led_color=(0, 0, 0))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to call this when the task/process is killed, as shown here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @amiltonjr,
Mathoudebine talks about it here: #132

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will also implement the atexit callback from your link in #132

@Rollbacke
Copy link
Contributor

Hi @mathoudebine,
Tested today, it work.
Thanks :D

@mathoudebine mathoudebine merged commit 819cd88 into main Jan 8, 2023
@mathoudebine mathoudebine deleted the fix/134-a-clean-shutdown-does-not-turn-off-the-leds-on-revision-b branch January 8, 2023 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A clean shutdown does not turn off the LEDs on revision B
3 participants