OpenBikeSensorFirmware icon indicating copy to clipboard operation
OpenBikeSensorFirmware copied to clipboard

Reset display every ~60sek

Open Halbelunge opened this issue 4 years ago • 2 comments

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

Halbelunge avatar Jan 25 '21 20:01 Halbelunge

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.

Halbelunge avatar Jan 25 '21 20:01 Halbelunge

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

amandel avatar Jul 05 '21 20:07 amandel