tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
608 stars 192 forks source link

all: add sleep mode to various SPI displays #548

Closed aykevl closed 1 year ago

aykevl commented 1 year ago

The API looks like this and is based on the PCA9685 PWM chip:

Sleep(sleepEnabled bool) error

It will set the LCD panel to a low power state (not displaying any image) but memory contents will be preserved.

conejoninja commented 1 year ago

Thanks! Great work as always.