From bcde30ff9e322278ebeb316bfa34af0328680bcf Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Fri, 16 Oct 2026 14:05:33 +0200 Subject: pylint review + ergol key mapping --- layout.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'layout.py') diff --git a/layout.py b/layout.py index 3dfb828..4bc0eb1 100644 --- a/layout.py +++ b/layout.py @@ -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. """ -- cgit v1.2.3