This is the device; https://smile.amazon.com/gp/product/B07 ... UTF8&psc=1
Got the driver code from here; https://github.com/adafruit/micropython ... it-ssd1306
And here's the code I wrote that writes the text;
Code: Select all
from machine import Pin, I2C
from SSD1306 import SSD1306, SSD1306_I2C
esp32i2cPins = {'sda': 23, 'scl': 22}
frequency=100000
sclPin=esp32i2cPins['scl']
sdaPin=esp32i2cPins['sda']
i2c = I2C(scl=Pin(sclPin), sda=Pin(sdaPin), freq = frequency)
devices = i2c.scan()
print(devices) # should see [60]
ssd = SSD1306_I2C(width=128, height=64, i2c=i2c, external_vcc=False)
ssd.init_display()
ssd.text('hello', 0, 0)
ssd.text('world', 0, 20)
ssd.show()