2021-10-04 01:40:18 +11:00
|
|
|
class Scanner:
|
|
|
|
'''
|
|
|
|
Base class for scanners.
|
|
|
|
'''
|
|
|
|
|
2022-02-21 12:34:44 +11:00
|
|
|
def __init__(self):
|
|
|
|
self.coord_mapping = None
|
|
|
|
|
2021-10-04 01:40:18 +11:00
|
|
|
def scan_for_changes(self):
|
|
|
|
'''
|
|
|
|
Scan for key events and return a key report if an event exists.
|
|
|
|
|
|
|
|
The key report is a byte array with contents [row, col, True if pressed else False]
|
|
|
|
'''
|
|
|
|
pass
|