pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
200 stars 166 forks source link

ssd1306.py: Make it work again #427

Closed robert-hh closed 4 years ago

robert-hh commented 4 years ago

This was based on the old PyBoard I2C methods. Now it is using the recent methods for I2C.

Also: Fix init setting for 64x32 displays. Note: This PR may not be overly important, but a few people stumbled over this non-working driver, including me yesterday. I stumbled over the wrong 64x32 size setting. Note2: It might be useful to implement the writevto() method for I2C, avoiding memory allocations for chained write.