Created
July 31, 2019 18:52
-
-
Save mjkillough/ae28b3843127b7aad1a4931d3e4b6b14 to your computer and use it in GitHub Desktop.
MicroPython Feather HUZZAH FeatherWing OLED
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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