adafruit / Adafruit-SSD1331-OLED-Driver-Library-for-Arduino

For 0.96" OLEDs in the Adafruit shop
http://www.adafruit.com/products/684
Other
100 stars 67 forks source link

Adds ability to turn SSD1331 display on or off programmatically #21

Closed Paraphraser closed 5 years ago

Paraphraser commented 5 years ago

When SSD1331 OLEDs are left on for long periods they can suffer from burn-in. Whether this is common to all OLEDs or is peculiar to SSD1331s (or even just a single batch of SSD1331s) is unknown. This change adds an enableDisplay(boolean) function that permits a sketch to control whether the display is lit or dormant. Using this new function, sketches can turn the display off or on at predetermined intervals, or in response to external signals such as button presses. Updates sent to a dormant display are still processed normally and appear when the display is next lit. A new test sketch demonstrates toggling the display on and off in response to button presses.

TwoOLEDS

ladyada commented 5 years ago

@makermelissa maybe good to have this for all displays?

makermelissa commented 5 years ago

Yeah, it should be easy enough to add.