File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
4
4
"""
5
5
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.
7
7
"""
8
8
import board
9
9
import busio
12
12
from adafruit_display_text import label
13
13
from adafruit_st7789 import ST7789
14
14
15
+
15
16
BORDER_WIDTH = 28
16
17
TEXT_SCALE = 3
17
18
18
19
# Release any resources currently in use for the displays
19
20
displayio .release_displays ()
20
21
21
22
# built-in, silkscreen labelled SPI bus
22
- spi = busio .SPI (board . SCK , board . MOSI , board . MISO )
23
+ spi = board .SPI ()
23
24
tft_cs = board .D5
24
25
tft_dc = board .D6
25
26
tft_rst = board .D9
62
63
# Draw a label
63
64
text_area = label .Label (
64
65
terminalio .FONT ,
65
- text = "Hello World!! " ,
66
+ text = "Hello World!" ,
66
67
color = 0xFFFF00 ,
67
68
scale = TEXT_SCALE ,
68
69
anchor_point = (0.5 , 0.5 ),
You can’t perform that action at this time.
0 commit comments