2018-10-11 05:46:59 +02:00
|
|
|
try:
|
|
|
|
import machine
|
2019-07-25 07:57:11 +02:00
|
|
|
|
2018-10-11 05:46:59 +02:00
|
|
|
machine.bootloader()
|
2018-09-26 03:13:51 +02:00
|
|
|
|
2018-10-11 05:46:59 +02:00
|
|
|
except ImportError:
|
|
|
|
import microcontroller
|
2019-07-25 07:57:11 +02:00
|
|
|
|
2018-10-11 05:46:59 +02:00
|
|
|
microcontroller.on_next_reset(microcontroller.RunMode.BOOTLOADER)
|
|
|
|
microcontroller.reset()
|