Allow super simple keymap keycode definitions (very QMK-ish)

This commit is contained in:
Josh Klar
2018-09-16 22:17:30 -07:00
parent 88807837d5
commit 6933d9c484
4 changed files with 70 additions and 17 deletions

View File

@@ -2,7 +2,7 @@ from logging import DEBUG
import machine
from kmk.common.consts import DiodeOrientation
from kmk.common.consts import KC, DiodeOrientation
from kmk.firmware import Firmware
@@ -15,9 +15,9 @@ def main():
diode_orientation = DiodeOrientation.COLUMNS
keymap = [
['A', 'B', 'C'],
['D', 'E', 'F'],
['G', 'H', 'I'],
[KC.ESC, KC.H, KC.BACKSPACE],
[KC.TAB, KC.I, KC.ENTER],
[KC.CTRL, KC.SPACE, KC.SHIFT],
]
firmware = Firmware(