Skip to content

Instantly share code, notes, and snippets.

@boochow
Created October 12, 2019 11:48
Show Gist options
  • Save boochow/bbf4f824e6751f3b5b10205dfa6020dc to your computer and use it in GitHub Desktop.
Save boochow/bbf4f824e6751f3b5b10205dfa6020dc to your computer and use it in GitHub Desktop.
from ST7735 import TFT
from machine import SPI,Pin
spi = SPI(2, baudrate=20000000, polarity=0, phase=0, sck=Pin(14), mosi=Pin(13), miso=Pin(12))
tft=TFT(spi,16,17,18)
tft.initb2()
tft.rgb(True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment