# boot.py — runs once before USB connects (hard reset / power-cycle to apply). # Guarantees the device shows up as a USB-MIDI port so the web editor's "Device audio" # can hear it. We don't use HID, so disabling it frees a USB endpoint for MIDI on the # Pico (which also exposes the CIRCUITPY drive + serial at the same time). import usb_hid, usb_midi try: usb_hid.disable() except Exception: pass usb_midi.enable()