Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created December 3, 2016 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LarsBergqvist/7b4456550c05008e71b4731693266843 to your computer and use it in GitHub Desktop.
Save LarsBergqvist/7b4456550c05008e71b4731693266843 to your computer and use it in GitHub Desktop.
Example on text output on a 128x32 SSD1306 OLED display
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