-
-
Save virtadpt/667f56b40fbcd5565abd8cba1e08011f 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