Commit b6d9c271 authored by Russ Hughes's avatar Russ Hughes

minor example program cleanup

parent 3090405b
......@@ -6,7 +6,8 @@ hello.py
https://youtu.be/OtcERmad5ps
"""
import random, time
import random
from pyb import SPI, Pin
import st7789
......
......@@ -125,10 +125,6 @@ def main():
spi = SPI(
2,
baudrate=32000000,
polarity=1,
phase=0,
bits=8,
firstbit=0,
sck=Pin(18, Pin.OUT),
mosi=Pin(19, Pin.OUT))
......
......@@ -27,10 +27,6 @@ def main():
spi = SPI(
2,
baudrate=32000000,
polarity=1,
phase=0,
bits=8,
firstbit=0,
sck=Pin(18),
mosi=Pin(19))
......
......@@ -45,10 +45,6 @@ def main():
spi = SPI(
2,
baudrate=32000000,
polarity=1,
phase=0,
bits=8,
firstbit=0,
sck=Pin(18, Pin.OUT),
mosi=Pin(19, Pin.OUT))
......
......@@ -72,10 +72,6 @@ def main():
spi = SPI(
2,
baudrate=32000000,
polarity=1,
phase=0,
bits=8,
firstbit=0,
sck=Pin(18, Pin.OUT),
mosi=Pin(19, Pin.OUT))
......
......@@ -30,10 +30,6 @@ def main():
spi = SPI(
2,
baudrate=32000000,
polarity=1,
phase=0,
bits=8,
firstbit=0,
sck=Pin(18, Pin.OUT),
mosi=Pin(19, Pin.OUT))
......
......@@ -56,10 +56,6 @@ def main():
spi = SPI(
2,
baudrate=32000000,
polarity=1,
phase=0,
bits=8,
firstbit=0,
sck=Pin(18, Pin.OUT),
mosi=Pin(19, 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