Skip to content
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

Clear e-ink display on shutdown #329

Open
Yorper opened this issue Feb 3, 2025 · 1 comment
Open

Clear e-ink display on shutdown #329

Yorper opened this issue Feb 3, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@Yorper
Copy link

Yorper commented Feb 3, 2025

I found this over on the Bjorn GitHub and thought it a very good idea.

infinition/Bjorn#60

For those that don’t like following links, I’ve added a snippet below.


According to precaution infinition/Bjorn#3 (https://www.waveshare.com/wiki/2.13inch_Touch_e-Paper_HAT_Manual):
'When using the e-Paper display, it is recommended that the refresh interval is at least 180s, and refresh at least once every 24 hours. If the e-Paper is not used for a long time, you should use the program to clear the screen before storing it. (Refer to the datasheet for specific storage environment requirements.)'

Apparently it will damage the screen (probably burn-in) if the screen is left with an image on it.

If we could get the screen to clear on shutdown from the web interface would be great. I'm used to Arduino stuff, I really don't know python at all, but according to the samples, you can clear the screen this way:

#Clear display: This function is used to clear the e-paper to white.
def Clear(self)

Also the precautions also mention:

For e-Paper displays that support partial refresh, please note that you cannot refresh them with the partial refresh mode all the time. After refreshing partially several times, you need to fully refresh EPD once. Otherwise, the display effect will be abnormal, which cannot be repaired!
Note that the screen cannot be powered on for a long time. When the screen is not refreshed, please set the screen to sleep mode or power off it. Otherwise, the screen will remain in a high voltage state for a long time, which will damage the e-Paper and cannot be repaired!
I don't know if these precautions are an issue, but I figured I would point them out just incase so our E-Paper screens don't get damaged.

@Yorper Yorper added the enhancement New feature or request label Feb 3, 2025
@SpaceLeftBlank
Copy link

I added that to my shutdown button on my PiSugar3 with the following .sh

#!/bin/bash
sudo systemctl stop pwnagotchi
sudo pwnagotchi --clear
sudo shutdown -h now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants