Skip to content

Commit 20aeeab

Browse files
committed
Merge branch 'master' of github.com:python-ugame/circuitpython-stage
2 parents a895b3a + e211d39 commit 20aeeab

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

pewpew_m4/ugame.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def get_pressed(self):
4141
now = time.monotonic()
4242
if self.last_z_press:
4343
if now - self.last_z_press > 2:
44+
supervisor.set_next_code_file(None)
4445
supervisor.reload()
4546
else:
4647
self.last_z_press = now

pybadge/ugame.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
import board
2+
"""
3+
A helper module that initializes the display and buttons for the
4+
Adafruit PyBadge game console.
5+
"""
6+
27
import stage
38
import displayio
49
import busio

pygamer/ugame.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
A helper module that initializes the display and buttons for the
3+
Adafruit PyGamer game console.
4+
"""
5+
16
import board
27
import analogio
38
import stage

0 commit comments

Comments
 (0)