diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-10-16 14:05:33 +0200 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-10-16 14:05:33 +0200 |
| commit | bcde30ff9e322278ebeb316bfa34af0328680bcf (patch) | |
| tree | e5b3192461f64fb998173feaf2511f3ae0c37fb0 /layout.py | |
| parent | f421547316803b545c678a8610954b1b14339b9d (diff) | |
pylint review + ergol key mappingmain
Diffstat (limited to 'layout.py')
| -rw-r--r-- | layout.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,16 +1,15 @@ # Describe the layout used in the keyboard # import board -from digitalio import Pull +from digitalio import DigitalInOut, Direction, Pull from kmk.scanners import DiodeOrientation -col_pins = (board.GP26,board.GP27,board.GP28,board.GP29) -row_pins = (board.GP22,board.GP20,board.GP23,board.GP21) +col_pins = (board.GP26, board.GP27, board.GP28, board.GP29) +row_pins = (board.GP22, board.GP20, board.GP23, board.GP21) diode_orientation = DiodeOrientation.ROW2COL -from digitalio import DigitalInOut, Direction, Pull def check_key(): """ Check if a key is pressed and return True if so. @@ -38,6 +37,7 @@ def check_key(): return result return False + def set_keyboard(keyboard): """ Initialize the kmk keyboard with the values defined here. """ |
