Files
PolterHID/boot.py
T
Commander1024 9e49484354 Add maintenance mode and board status indicators
Provide BOOT-triggered USB CDC maintenance mode for file updates, plus
onboard LED activity flashes and enhanced display status information.
2026-08-27 20:33:24 +02:00

14 lines
437 B
Python

"""Select USB HID or local USB-REPL maintenance mode before main.py."""
import maintenance
# Press BOOT during this short window after a normal reset to retain the stock
# USB CDC REPL. Holding BOOT while resetting still enters ESP download mode.
maintenance.check_button()
if not maintenance.active:
from hid import initialise
# Keep the configured USB device and its callbacks alive for the session.
hid = initialise()