Listen to KEY_DOWN_EVENT and KEY_UP_EVENT in the HIDHelper and actually send. Working keyboard! ⌨

This commit is contained in:
Josh Klar
2018-09-16 23:20:16 -07:00
parent 6933d9c484
commit 3e99f0c8e3
8 changed files with 308 additions and 245 deletions

View File

@@ -2,8 +2,10 @@ from logging import DEBUG
import machine
from kmk.common.consts import KC, DiodeOrientation
from kmk.common.consts import DiodeOrientation
from kmk.common.keycodes import KC
from kmk.firmware import Firmware
from kmk.micropython.pyb_hid import HIDHelper
def main():
@@ -25,6 +27,7 @@ def main():
row_pins=rows,
col_pins=cols,
diode_orientation=diode_orientation,
hid=HIDHelper,
log_level=DEBUG,
)