File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change
1
+ import time
1
2
import displayio
2
3
import terminalio
3
4
import board
4
5
import digitalio
5
- import time
6
6
from adafruit_hx8357 import HX8357 # TFT Featherwing display driver
7
7
import adafruit_stmpe610 # TFT Featherwing V1 touch driver
8
- from adafruit_display_text import label
9
- from adafruit_bitmap_font import bitmap_font
10
8
from adafruit_button .sprite_button import SpriteButton
11
9
12
10
# 3.5" TFT Featherwing is 480x320
65
63
if button .contains (p ):
66
64
if not button .selected :
67
65
button .selected = True
68
- time .sleep (0.25 ) # Wait a bit so we can see the button color change
66
+ time .sleep (0.25 ) # Wait a bit so we can see the button color change
69
67
print ("Button Pressed" )
70
68
else :
71
69
button .selected = False # When touch moves outside of button
72
70
else :
73
- button .selected = False # When button is released
71
+ button .selected = False # When button is released
You can’t perform that action at this time.
0 commit comments