File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Metro/Metro_RP2350_Memory/memory_game Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1111import random
1212import time
1313import atexit
14- from displayio import Group , OnDiskBitmap , TileGrid
14+ from displayio import Group , OnDiskBitmap , TileGrid , CIRCUITPYTHON_TERMINAL
1515from adafruit_display_text .bitmap_label import Label
1616from adafruit_display_text .text_box import TextBox
1717from adafruit_displayio_layout .layouts .grid_layout import GridLayout
@@ -292,7 +292,14 @@ def update_score_text():
292292if mouse_ptr is None :
293293 mouse_ptr = find_and_init_report_mouse ("mouse_cursor.bmp" )
294294if mouse_ptr is None :
295- print ("No mouse found." )
295+ display .root_group = CIRCUITPYTHON_TERMINAL
296+ print ("\n No mouse found" )
297+ print ("Memory requires a mouse to run" )
298+ print ("please attach a mouse and try again." )
299+ time .sleep (7 )
300+ # restart back to code.py
301+ supervisor .reload ()
302+
296303mouse = mouse_ptr .device
297304
298305mouse_tg = mouse_ptr .tilegrid
You can’t perform that action at this time.
0 commit comments