Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MicroPython Feather HUZZAH FeatherWing OLED
# https://github.com/adafruit/micropython-adafruit-ssd1306/blob/master/ssd1306.py
# https://learn.adafruit.com/micropython-hardware-ssd1306-oled-display/micropython
import machine
import ssd1306
i2c = machine.I2C(-1, machine.Pin(5), machine.Pin(4))
oled = ssd1306.SSD1306_I2C(128, 32, i2c)
oled.fill(1)
oled.show()
oled.fill(0)
oled.text('Hello', 0, 0)
oled.text('World', 0, 10)
oled.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment