Skip to content

Instantly share code, notes, and snippets.

@shimarin
Created March 5, 2019 04:16
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 shimarin/70d356b160f403f1b9b28907d736f5f0 to your computer and use it in GitHub Desktop.
Save shimarin/70d356b160f403f1b9b28907d736f5f0 to your computer and use it in GitHub Desktop.
from machine import Pin,SPI
from ssd1306 import SSD1306_SPI
oled = SSD1306_SPI(128, 64, SPI(2,sck=Pin(18),mosi=Pin(23), miso=Pin(19)),dc=Pin(2),res=Pin(4),cs=Pin(5))
oled.text('Hello, World!', 0, 0)
oled.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment