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
599 stars 188 forks source link

ssd1306 Add getter method on display buffer #459

Closed alexjomin closed 1 year ago

alexjomin commented 1 year ago

Hi there,

I think I could be great to have a getter method to retrieve the buffer, so we could iterate over the slice to apply an effect on the whole screen for example.

Feel free to comment and thank you for the awesome work on TinyGo!

conejoninja commented 1 year ago

Yes, this could be added to other displays with buffer (not all have because of size), I think some of them (mostly monochrome) already have a getter, but I'll check them.

alexjomin commented 1 year ago

Thank you for the review, let me know if I can help.

deadprogram commented 1 year ago

Thanks @alexjomin now merging.