port all boards to new intify_coordinate signature.

This commit is contained in:
xs5871
2022-02-04 21:21:46 +00:00
committed by Kyle Brown
parent 6840330f50
commit dc4fc646aa
12 changed files with 109 additions and 51 deletions

View File

@@ -23,10 +23,15 @@ class KMKKeyboard(_KMKKeyboard):
powersave_pin = board.P0_13
coord_mapping = []
coord_mapping.extend(ic(0, x) for x in range(12))
coord_mapping.extend(ic(1, x) for x in range(12))
coord_mapping.extend(ic(2, x) for x in range(12))
coord_mapping.extend(ic(3, x) for x in range(12))
coord_mapping.extend(ic(0, x, 6) for x in range(6))
coord_mapping.extend(ic(4, x, 6) for x in range(6))
coord_mapping.extend(ic(1, x, 6) for x in range(6))
coord_mapping.extend(ic(5, x, 6) for x in range(6))
coord_mapping.extend(ic(2, x, 6) for x in range(6))
coord_mapping.extend(ic(6, x, 6) for x in range(6))
coord_mapping.extend(ic(3, x, 6) for x in range(6))
coord_mapping.extend(ic(7, x, 6) for x in range(6))
# And now, to handle R4, which at this point is down to just ten keys
coord_mapping.extend(ic(4, x) for x in range(1, 11))
coord_mapping.extend(ic(4, x, 6) for x in range(1, 6))
coord_mapping.extend(ic(8, x, 6) for x in range(0, 5))