Commit 0bdcbe79 authored by Mike Szczys's avatar Mike Szczys

Reformatted SoftSPI initializations

parent d675ee39
......@@ -20,13 +20,7 @@ import vga1_8x16 as font
def main():
tft = st7789.ST7789(
SoftSPI(
2,
baudrate=30000000,
polarity=1,
phase=1,
sck=Pin(18),
mosi=Pin(19)),
SoftSPI(baudrate=30000000, polarity=1, phase=1, sck=Pin(18), mosi=Pin(19), miso=Pin(21)),
135,
240,
reset=Pin(23, Pin.OUT),
......
......@@ -19,7 +19,7 @@ import vga1_bold_16x32 as font4
def main():
tft = st7789.ST7789(
SoftSPI(2, baudrate=30000000, polarity=1, phase=1, sck=Pin(18), mosi=Pin(19)),
SoftSPI(baudrate=30000000, polarity=1, phase=1, sck=Pin(18), mosi=Pin(19), miso=Pin(21)),
135,
240,
reset=Pin(23, Pin.OUT),
......
......@@ -16,7 +16,7 @@ import vga1_bold_16x32 as font
def main():
tft = st7789.ST7789(
SoftSPI(2, baudrate=30000000, polarity=1, phase=1, sck=Pin(18), mosi=Pin(19)),
SoftSPI(baudrate=30000000, polarity=1, phase=1, sck=Pin(18), mosi=Pin(19), miso=Pin(21)),
135,
240,
reset=Pin(23, Pin.OUT),
......
......@@ -65,13 +65,7 @@ def main():
'''
# configure display
tft = st7789.ST7789(
SoftSPI(
2,
baudrate=30000000,
polarity=1,
phase=1,
sck=Pin(18),
mosi=Pin(19)),
SoftSPI(baudrate=30000000, polarity=1, phase=1, sck=Pin(18), mosi=Pin(19), miso=Pin(21)),
135,
240,
reset=Pin(23, Pin.OUT),
......
......@@ -30,13 +30,7 @@ def cycle(p):
def main():
tft = st7789.ST7789(
SoftSPI(
2,
baudrate=30000000,
polarity=1,
phase=1,
sck=Pin(18),
mosi=Pin(19)),
SoftSPI(baudrate=30000000, polarity=1, phase=1, sck=Pin(18), mosi=Pin(19), miso=Pin(21)),
135,
240,
reset=Pin(23, Pin.OUT),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment