Created
December 3, 2016 20:00
-
-
Save LarsBergqvist/7b4456550c05008e71b4731693266843 to your computer and use it in GitHub Desktop.
Example on text output on a 128x32 SSD1306 OLED display
This file contains 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
import machine | |
i2c = machine.I2C(machine.Pin(5), machine.Pin(4)) | |
import ssd1306 | |
oled = ssd1306.SSD1306_I2C(128, 32, i2c) | |
oled.fill(0) | |
oled.text("First line", 0, 0) | |
oled.text("Second line", 0, 10) | |
oled.text("Third line", 0, 20) | |
oled.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment