File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
background, a smaller purple rectangle, and some yellow text.
7
7
"""
8
8
import board
9
- import busio
10
9
import terminalio
11
10
import displayio
12
11
from adafruit_display_text import label
19
18
# Release any resources currently in use for the displays
20
19
displayio .release_displays ()
21
20
22
- # built-in, silkscreen labelled SPI bus
21
+ # built-in, silkscreen labelled SPI bus
23
22
spi = board .SPI ()
24
23
tft_cs = board .D5
25
24
tft_dc = board .D6
26
25
tft_rst = board .D9
27
26
28
- # If using a Raspberry Pi Pico or Pico-w
29
- # Uncomment the below code to use GP (General Purpose) pins
27
+ # If using a Raspberry Pi Pico or Pico-w
28
+ # Uncomment the below code to use GP (General Purpose) pins
30
29
# instead of D (Digital)
31
30
31
+ # import busio
32
32
# spi = busio.SPI(board.GP2, board.GP3, board.GP4)
33
33
# tft_cs = board.GP5
34
34
# tft_dc = board.GP6
You can’t perform that action at this time.
0 commit comments