Skip to content

Commit fe87096

Browse files
committed
use builtin SPI bus. remove extra punctuation
1 parent 0dc0608 commit fe87096

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/st7789_172x320_1.47_simpletest.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
"""
55
This test will initialize the display using displayio and draw a solid green
6-
background, a smaller purple rectangle, and some yellow text..
6+
background, a smaller purple rectangle, and some yellow text.
77
"""
88
import board
99
import busio
@@ -12,14 +12,15 @@
1212
from adafruit_display_text import label
1313
from adafruit_st7789 import ST7789
1414

15+
1516
BORDER_WIDTH = 28
1617
TEXT_SCALE = 3
1718

1819
# Release any resources currently in use for the displays
1920
displayio.release_displays()
2021

2122
# built-in, silkscreen labelled SPI bus
22-
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
23+
spi = board.SPI()
2324
tft_cs = board.D5
2425
tft_dc = board.D6
2526
tft_rst = board.D9
@@ -62,7 +63,7 @@
6263
# Draw a label
6364
text_area = label.Label(
6465
terminalio.FONT,
65-
text="Hello World!!",
66+
text="Hello World!",
6667
color=0xFFFF00,
6768
scale=TEXT_SCALE,
6869
anchor_point=(0.5, 0.5),

0 commit comments

Comments
 (0)