Created
June 16, 2018 16:37
-
-
Save boochow/a8b33ca0d792a7e81541b3af4cf708da to your computer and use it in GitHub Desktop.
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
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