Added circuitpython support to utils
This commit is contained in:
parent
97f70d7a13
commit
14233b77d3
@ -1,3 +1,8 @@
|
|||||||
import machine
|
try:
|
||||||
|
import machine
|
||||||
|
machine.bootloader()
|
||||||
|
|
||||||
machine.bootloader()
|
except ImportError:
|
||||||
|
import microcontroller
|
||||||
|
microcontroller.on_next_reset(microcontroller.RunMode.BOOTLOADER)
|
||||||
|
microcontroller.reset()
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
import machine
|
try:
|
||||||
|
import machine
|
||||||
|
machine.reset()
|
||||||
|
|
||||||
machine.reset()
|
except ImportError:
|
||||||
|
import microcontroller
|
||||||
|
microcontroller.reset()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user