Initial play with kb.py

This commit is contained in:
2024-03-04 14:43:56 -06:00
committed by GitHub
parent 07c9cab34e
commit dee1c1f7da

View File

@@ -0,0 +1,28 @@
import board
from kmk.extensions.LED import LED
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
from kmk.scanners import DiodeOrientation
class KMKKeyboard(_KMKKeyboard):
col_pins = (
board.GP2,
board.GP3,
board.GP29,
board.GP27,
board.GP6,
board.GP5,
)
row_pins = (
board.GP0,
board.GP1,
board.GP7,
board.GP16,
board.GP28,
)
diode_orientation = DiodeOrientation.COLUMNS
leds = LED(led_pin=[board.GP27, board.GP28])
_KMKKeyboard.extensions.append(leds)