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
12import displayio
23import terminalio
34import board
45import digitalio
5- import time
66from adafruit_hx8357 import HX8357 # TFT Featherwing display driver
77import adafruit_stmpe610 # TFT Featherwing V1 touch driver
8- from adafruit_display_text import label
9- from adafruit_bitmap_font import bitmap_font
108from adafruit_button .sprite_button import SpriteButton
119
1210# 3.5" TFT Featherwing is 480x320
6563 if button .contains (p ):
6664 if not button .selected :
6765 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
6967 print ("Button Pressed" )
7068 else :
7169 button .selected = False # When touch moves outside of button
7270 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