Skip to content

Instantly share code, notes, and snippets.

@RobCranfill
Last active October 6, 2025 16:14
Show Gist options
  • Save RobCranfill/8413eddb49265f5f640b84ef91ea4fe1 to your computer and use it in GitHub Desktop.
Save RobCranfill/8413eddb49265f5f640b84ef91ea4fe1 to your computer and use it in GitHub Desktop.
Put CircuitPython device into bootloader mode; useful on my QTPy that I broke the BOOTSEL button on! And also all my embedded devices where I can't get at the BOOT button.
import microcontroller
microcontroller.on_next_reset(microcontroller.RunMode.BOOTLOADER)
microcontroller.reset()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment