Skip to content

Instantly share code, notes, and snippets.

@boochow
Created June 16, 2018 16:37
Show Gist options
  • Save boochow/a8b33ca0d792a7e81541b3af4cf708da to your computer and use it in GitHub Desktop.
Save boochow/a8b33ca0d792a7e81541b3af4cf708da to your computer and use it in GitHub Desktop.
from machine import Pin, SPI
spi = SPI(0)
dc = Pin(27,Pin.OUT)
res = Pin(22,Pin.OUT)
cs = Pin(17,Pin.OUT)
d = SSD1306_SPI(128,64,spi,dc,res,cs)
d.text("SPI OK", 0, 0)
d.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment