Escape hatches: flash the user keyboard script as part of DFU rather than pushing with ampy. WAY more stable, mostly unbrickable now

This commit is contained in:
Josh Klar
2018-09-02 23:39:55 -07:00
parent e9d448af44
commit e4b19de009
3 changed files with 29 additions and 33 deletions

View File

@@ -1,12 +1,11 @@
import board
import time
from kmk.circuitpython.matrix import MatrixScanner
from kmk.common.consts import DiodeOrientation
from kmk.common.keymap import Keymap
if __name__ == '__main__':
def main():
cols = (board.A4, board.A5)
rows = (board.D27, board.A6)
@@ -22,5 +21,3 @@ if __name__ == '__main__':
while True:
keymap.parse(matrix.raw_scan())
# Yield to the controller to allow things like the REPL to take over
time.sleep(0.001)