I have a program on the Heltec ESP32 WiFi kit which measures some data, and under some circumstances, goes into timer-controlled sleep. I noticed that when it wakes up, the last data displayed on the OLED is still there, even if I used display.clearDisplay() (Adafruit library) rignt before going to sleep. After looking at the library for the display, it was obvious that the clearDisplay() function writes all zeros to the buffer for the display, so I concluded that clearDisplay() doesn't actually clear the display. I had to follow that command with display.display() to get the all-zero buffer into the display.
This is the first time I have used one of these displays, in conjunction with any chip. Is the situation the same for all SSD1306 displays, or is this just an oversight in the Adafruit library?
Thanks in advance for any information on this.
jrdoner