11 lines
197 B
Python
11 lines
197 B
Python
try:
|
|
import machine
|
|
|
|
machine.bootloader()
|
|
|
|
except ImportError:
|
|
import microcontroller
|
|
|
|
microcontroller.on_next_reset(microcontroller.RunMode.BOOTLOADER)
|
|
microcontroller.reset()
|