diff options
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. """ |
