kmk_firmware/boards/navi10/kb.py

20 lines
485 B
Python
Raw Normal View History

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
2022-04-09 02:09:24 +02:00
from kmk.scanners import DiodeOrientation
2021-12-20 22:51:27 +01:00
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