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

E-ink display not set to sleep #3

Open
kimmobrunfeldt opened this issue Nov 21, 2022 · 0 comments
Open

E-ink display not set to sleep #3

kimmobrunfeldt opened this issue Nov 21, 2022 · 0 comments

Comments

@kimmobrunfeldt
Copy link
Owner

Writing this down so I don't forget, but the code doesn't set the e-ink display into sleep at the moment. The usb-it8951/main.c is used for updating the screen. There's no support for sending the sleep command.

Waveshare's C code has an example: https://github.com/kimmobrunfeldt/eink-weather-display/blob/main/rasp/IT8951-ePaper/Raspberry/lib/e-Paper/EPD_IT8951.c#L654 which should be ported to the usb-it8951 version to support sleep.

It's possible that after sending sleep mode, one must use some or all commands from the Init routine. I didn't investigate it further.

For my use-case this shouldn't matter AFAIK. The raspberry PI is awake only for ~30-60seconds, which means the display only gets power during that time. Theoretically it would be beneficial to set the EDP to sleep, to minimize the active time before power is cut, but that seems like a micro-optimisation.

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

No branches or pull requests

1 participant