Skip to content

Instantly share code, notes, and snippets.

@mjkillough
Created July 31, 2019 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mjkillough/ae28b3843127b7aad1a4931d3e4b6b14 to your computer and use it in GitHub Desktop.
Save mjkillough/ae28b3843127b7aad1a4931d3e4b6b14 to your computer and use it in GitHub Desktop.
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