Custom matrix scanners
- Introduce Scanner base class for MatrixScanner - Create new Scanner using built-in keypad module - Allow overriding the scanner used by KMKKeyboard
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import digitalio
|
||||
|
||||
from kmk.scanners import Scanner
|
||||
|
||||
|
||||
def intify_coordinate(row, col, len_cols):
|
||||
return len_cols * row + col
|
||||
@@ -26,7 +28,7 @@ class KeyEvent:
|
||||
self.pressed = pressed
|
||||
|
||||
|
||||
class MatrixScanner:
|
||||
class MatrixScanner(Scanner):
|
||||
def __init__(
|
||||
self,
|
||||
cols,
|
||||
|
Reference in New Issue
Block a user