Unverified Commit 3947df7c authored by russhughes's avatar russhughes Committed by GitHub

Merge pull request #20 from szczys/master

Reformatted SoftSPI initializations
parents d675ee39 0bdcbe79
...@@ -20,13 +20,7 @@ import vga1_8x16 as font ...@@ -20,13 +20,7 @@ import vga1_8x16 as font
def main(): def main():
tft = st7789.ST7789( tft = st7789.ST7789(
SoftSPI( SoftSPI(baudrate=30000000, polarity=1, phase=1, sck=Pin(18), mosi=Pin(19), miso=Pin(21)),
2,
baudrate=30000000,
polarity=1,
phase=1,
sck=Pin(18),
mosi=Pin(19)),
135, 135,
240, 240,
reset=Pin(23, Pin.OUT), reset=Pin(23, Pin.OUT),
......
...@@ -19,7 +19,7 @@ import vga1_bold_16x32 as font4 ...@@ -19,7 +19,7 @@ import vga1_bold_16x32 as font4
def main(): def main():
tft = st7789.ST7789( 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, 135,
240, 240,
reset=Pin(23, Pin.OUT), reset=Pin(23, Pin.OUT),
......
...@@ -16,7 +16,7 @@ import vga1_bold_16x32 as font ...@@ -16,7 +16,7 @@ import vga1_bold_16x32 as font
def main(): def main():
tft = st7789.ST7789( 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, 135,
240, 240,
reset=Pin(23, Pin.OUT), reset=Pin(23, Pin.OUT),
......
...@@ -65,13 +65,7 @@ def main(): ...@@ -65,13 +65,7 @@ def main():
''' '''
# configure display # configure display
tft = st7789.ST7789( tft = st7789.ST7789(
SoftSPI( SoftSPI(baudrate=30000000, polarity=1, phase=1, sck=Pin(18), mosi=Pin(19), miso=Pin(21)),
2,
baudrate=30000000,
polarity=1,
phase=1,
sck=Pin(18),
mosi=Pin(19)),
135, 135,
240, 240,
reset=Pin(23, Pin.OUT), reset=Pin(23, Pin.OUT),
......
...@@ -30,13 +30,7 @@ def cycle(p): ...@@ -30,13 +30,7 @@ def cycle(p):
def main(): def main():
tft = st7789.ST7789( tft = st7789.ST7789(
SoftSPI( SoftSPI(baudrate=30000000, polarity=1, phase=1, sck=Pin(18), mosi=Pin(19), miso=Pin(21)),
2,
baudrate=30000000,
polarity=1,
phase=1,
sck=Pin(18),
mosi=Pin(19)),
135, 135,
240, 240,
reset=Pin(23, Pin.OUT), 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