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
584 stars 180 forks source link

ssd1306: add Rotation(), SetRotation() and Sleep() functions to complete Displayer interface #674

Closed deadprogram closed 2 months ago

deadprogram commented 2 months ago

This PR extends the ssd1306 to add Rotation(), SetRotation(), and Sleep() functions to complete the Displayer interface implementation.

deadprogram commented 2 months ago

The Displayer I am implementing here is https://github.com/aykevl/board/blob/main/common.go#L115-L143

And you are very correct, we need to sort this out in a better way in a future PR.

deadprogram commented 2 months ago

Thanks for review @sago35 now merging.