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 33
44"""
55This 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"""
88import board
99import busio
1212from adafruit_display_text import label
1313from adafruit_st7789 import ST7789
1414
15+
1516BORDER_WIDTH = 28
1617TEXT_SCALE = 3
1718
1819# Release any resources currently in use for the displays
1920displayio .release_displays ()
2021
2122# built-in, silkscreen labelled SPI bus
22- spi = busio .SPI (board . SCK , board . MOSI , board . MISO )
23+ spi = board .SPI ()
2324tft_cs = board .D5
2425tft_dc = board .D6
2526tft_rst = board .D9
6263# Draw a label
6364text_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 ),
You can’t perform that action at this time.
0 commit comments