2021-12-20 22:51:27 +01:00
|
|
|
import board
|
2022-01-10 18:39:23 +01:00
|
|
|
import digitalio
|
2021-12-20 22:51:27 +01:00
|
|
|
|
|
|
|
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
|
|
|
|
from kmk.matrix import DiodeOrientation
|
|
|
|
|
|
|
|
|
|
|
|
class KMKKeyboard(_KMKKeyboard):
|
2022-01-10 18:39:23 +01:00
|
|
|
led = digitalio.DigitalInOut(board.D9)
|
|
|
|
led.direction = digitalio.Direction.OUTPUT
|
|
|
|
led.value = False
|
2021-12-20 22:51:27 +01:00
|
|
|
row_pins = (board.D10, board.MOSI, board.MISO, board.D8)
|
|
|
|
col_pins = (
|
|
|
|
board.D4,
|
|
|
|
board.D7,
|
|
|
|
board.SCK,
|
|
|
|
)
|
|
|
|
diode_orientation = DiodeOrientation.COLUMNS
|
|
|
|
i2c = board.I2C
|