ThingPulse / esp8266-oled-ssd1306

Driver for the SSD1306 and SH1106 based 128x64, 128x32, 64x48 pixel OLED display running on ESP8266/ESP32
https://thingpulse.com
Other
2k stars 638 forks source link

Add support for resuming from deep sleep #215

Closed ccantill closed 4 years ago

ccantill commented 6 years ago

In my application I'm leaving the OLED display on while the ESP goes into deep sleep. Currently the init() method resets the whole display, which is not necessary in my case as it will still have its state from before. This results in a flicker whenever the display needs to be written to after a deep sleep. This adds a resume() method which initialises the OLEDDisplay object without resetting the actual display, eliminating the flickering.

marcelstoer commented 5 years ago

@ccantill sorry the PRs weren't processed in due time over the last year. Can I ask you to resolve the conflicts in src/OLEDDisplay.cpp? I had to merge a large PR from @helmut64 first, sorry.

ThorstenBr commented 4 years ago

I'd also like to support this use case (smooth display updates across deep sleeps). Any chance to get this included? If you prefer, I've created a new patch matching current head revision (since I could not update another user's pull request). Either merge this original patch (resolving the merge conflict is trivial), or apply #259 instead, which is identical, except is already matches the current master.

marcelstoer commented 4 years ago

We'll continue over at #259 -> closing