kmk_firmware/util/reset.py

10 lines
122 B
Python
Raw Normal View History

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.reset()
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.reset()