Adding Pimoroni Keybow and Keybow 2040

This commit is contained in:
Ellie T
2022-02-21 12:34:44 +11:00
committed by Kyle Brown
parent ef7b29bd43
commit 2fce09986e
11 changed files with 254 additions and 4 deletions

View File

@@ -3,6 +3,9 @@ class Scanner:
Base class for scanners.
'''
def __init__(self):
self.coord_mapping = None
def scan_for_changes(self):
'''
Scan for key events and return a key report if an event exists.

View File

@@ -15,7 +15,6 @@ class NativeKeypadScanner(Scanner):
def __init__(self, pin_map, kp):
self.pin_map = pin_map
self.keypad = kp
# self.coord_mapping = [ic(row, col) for (row, col) in self.pin_map]
self.coord_mapping = list(range(len(pin_map)))
self.curr_event = keypad.Event()