We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ead045 commit afedc64Copy full SHA for afedc64
1 file changed
Minesweep/code.py
@@ -14,6 +14,7 @@
14
15
import time
16
import board
17
+import digitalio
18
import displayio
19
import adafruit_imageload
20
import adafruit_touchscreen
@@ -43,7 +44,7 @@
43
44
BOMBQUESTION = 13
45
BOMBREVEALED = 14
46
-snapshot = Debouncer(board.D4)
47
+snapshot = Debouncer(digitalio.DigitalInOut(board.D4))
48
49
sprite_sheet, palette = adafruit_imageload.load("/SpriteSheet.bmp",
50
bitmap=displayio.Bitmap,
@@ -146,8 +147,9 @@ def play_a_game():
146
147
while True:
148
now = time/monotonic()
149
snapshot.update()
- if snapshot.fell:
150
- save_pixels()
+ # if snapshot.fell:
151
+ # save_pixels()
152
+ # continue
153
if now >= touch_time:
154
touch_time = now + 0.1
155
touch_at = touchscreen.touch_point
0 commit comments