kmk_firmware/kmk/common/internal_keycodes.py

12 lines
233 B
Python
Raw Normal View History

2018-09-21 21:57:29 +02:00
def process(self, state, key):
self.logger.warning(key)
if key.code == 1000:
reset(self)
def reset(self):
self.logger.debug('Rebooting to bootloader')
import machine
machine.bootloader()
return self