kmk_firmware/util/reset.py
2018-10-11 12:37:06 -07:00

8 lines
120 B
Python

try:
import machine
machine.reset()
except ImportError:
import microcontroller
microcontroller.reset()