adafruit / Adafruit_CircuitPython_DisplayIO_SSD1306

DisplayIO driver for SSD1306 monochrome OLED displays
MIT License
57 stars 24 forks source link

Implement SSD1306 sleep/wake functionality #19

Closed SAK917 closed 3 years ago

SAK917 commented 3 years ago

Add sleep() and wake() methods and an is_awake property to allow users to put the display into a power-saving mode. Uses the bus object passed to the SSD1306 class at initialization to write to the device. Commands for entering and exiting sleep mode derived from the SSD1306 datasheet.

Tested on a Monochrome 1.3" 128x64 OLED graphic display