Skip to content

Instantly share code, notes, and snippets.

@RobCranfill
Last active September 6, 2023 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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!
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