diff options
author | Devaev Maxim <[email protected]> | 2020-10-29 02:29:40 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-11-11 22:24:25 +0300 |
commit | e54449fd8ef0ea98aea881d25c9bb134a3bc2e11 (patch) | |
tree | 5648cd7c1d14ed5bf46491d18ad1bc0b461962af /genmap.py | |
parent | 08b96b7ada3363f599c9f58d091d9a06d54c2031 (diff) |
renamed serial keymap codes to mcu
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 |