Adding Pimoroni Keybow and Keybow 2040
This commit is contained in:
@@ -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.
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user