diff options
author | Devaev Maxim <[email protected]> | 2020-11-12 21:03:28 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-11-12 21:03:28 +0300 |
commit | 87cc8cf7b0e00f7f0a9badf551067aafad6da4ce (patch) | |
tree | cdd802d124236ded6969dc5d80c764deec357e02 /genmap.py | |
parent | 79ef26e2f441f6c742a5da78b08ea2d5a4cc6e18 (diff) | |
parent | 0984f0cb36c5881669010c62e986cc8bc7fe019a (diff) |
Merge branch 'spi'
Diffstat (limited to 'genmap.py')
-rwxr-xr-x | genmap.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -61,7 +61,7 @@ class _X11Key: @dataclasses.dataclass(frozen=True) class _KeyMapping: web_name: str - serial_code: int + mcu_code: int arduino_name: str otg_key: _OtgKey ps2_key: _Ps2Key @@ -115,7 +115,7 @@ def _read_keymap_csv(path: str) -> List[_KeyMapping]: if len(row) >= 6: keymap.append(_KeyMapping( web_name=row["web_name"], - serial_code=int(row["serial_code"]), + mcu_code=int(row["mcu_code"]), arduino_name=row["arduino_name"], otg_key=_parse_otg_key(row["otg_key"]), ps2_key=_parse_ps2_key(row["ps2_key"]), @@ -144,7 +144,7 @@ def main() -> None: # Fields list: # - Web - # - Serial code + # - MCU code # - Arduino name # - OTG code (^ for mod) # - PS/2 key |