2021-10-20 06:44:02 +02:00
|
|
|
import board
|
|
|
|
|
|
|
|
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
|
2022-04-09 02:09:24 +02:00
|
|
|
from kmk.scanners import DiodeOrientation
|
2021-10-20 06:44:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
class KMKKeyboard(_KMKKeyboard):
|
2021-10-22 02:07:52 +02:00
|
|
|
col_pins = (
|
2021-10-20 06:44:02 +02:00
|
|
|
board.COL1,
|
|
|
|
board.COL2,
|
|
|
|
board.COL3,
|
|
|
|
board.COL4,
|
|
|
|
board.COL5,
|
|
|
|
board.COL6,
|
|
|
|
board.COL7,
|
|
|
|
board.COL8,
|
|
|
|
board.COL9,
|
|
|
|
board.COL10,
|
|
|
|
board.COL11,
|
|
|
|
)
|
2021-10-22 02:07:52 +02:00
|
|
|
row_pins = (board.ROW1, board.ROW2, board.ROW3, board.ROW4)
|
2021-10-20 06:44:02 +02:00
|
|
|
diode_orientation = DiodeOrientation.COL2ROW
|
|
|
|
rgb_pixel_pin = board.NEOPIXEL
|
|
|
|
rgb_num_pixels = 44
|