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.
Add
sleep()
andwake()
methods and anis_awake
property to allow users to put the display into a power-saving mode. Uses the bus object passed to theSSD1306
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