Skip to content

Commit

Permalink
Make reset-picade.py simpler.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jul 31, 2024
1 parent bd5d6ae commit 8a833e8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions reset-picade.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import multiverse
import glob
import serial

picades = glob.glob("/dev/serial/by-id/usb-Pimoroni_Picade_Max_*")
picade = glob.glob("/dev/serial/by-id/usb-Pimoroni_Picade_Max_*")[0]

device = serial.Serial(picade)

device.write(b"multiverse:_usb")

d = multiverse.Display(picades[0], 32, 32, 0, 0)
d.setup()
d.bootloader()

0 comments on commit 8a833e8

Please sign in to comment.