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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user