move old matrix to kmk.scanners.digitalio_matrix

This commit is contained in:
xs5871
2022-04-09 00:07:38 +00:00
committed by Kyle Brown
parent 142a15e175
commit 7431192e95
7 changed files with 36 additions and 30 deletions

View File

@@ -1,3 +1,22 @@
def intify_coordinate(row, col, len_cols):
return len_cols * row + col
class DiodeOrientation:
'''
Orientation of diodes on handwired boards. You can think of:
COLUMNS = vertical
ROWS = horizontal
COL2ROW and ROW2COL are equivalent to their meanings in QMK.
'''
COLUMNS = 0
ROWS = 1
COL2ROW = COLUMNS
ROW2COL = ROWS
class Scanner:
'''
Base class for scanners.