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

Reset display every ~60sek #219

Open
Halbelunge opened this issue Jan 25, 2021 · 2 comments
Open

Reset display every ~60sek #219

Halbelunge opened this issue Jan 25, 2021 · 2 comments
Labels

Comments

@Halbelunge
Copy link
Contributor

To give better user experience reset the display every ~60 seconds to give bring a glitched display back to normal

@Halbelunge
Copy link
Contributor Author

just do an m_display->init() is not a good way, because with this the buffers will be reset in the allocation process. We need to skip this.

all that is left is an
m_display->sendInitCommands();
m_display->resetDisplay();

But sadly these 2 functions are in the "protected" part of the OLEDDisplay.h if we could take out this "protected" at that point, we can just run this as a light reset without allocating the buffers again.

@amandel
Copy link
Member

amandel commented Jul 5, 2021

Idea could be to react to i2c errors with this display refresh and leave the display alone otherwise

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

Successfully merging a pull request may close this issue.

2 participants