2020-09-29 01:07:19 +02:00
|
|
|
import board
|
|
|
|
|
|
|
|
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
|
|
|
|
from kmk.matrix import DiodeOrientation
|
|
|
|
|
2020-10-10 03:32:20 +02:00
|
|
|
|
2020-09-29 01:07:19 +02:00
|
|
|
class KMKKeyboard(_KMKKeyboard):
|
2020-10-10 03:32:20 +02:00
|
|
|
col_pins = (
|
|
|
|
board.P0_02,
|
|
|
|
board.P1_15,
|
|
|
|
board.P1_13,
|
|
|
|
board.P1_11,
|
2020-12-28 07:09:52 +01:00
|
|
|
board.P0_10,
|
|
|
|
board.P0_09,
|
2020-10-10 03:32:20 +02:00
|
|
|
)
|
2020-12-28 07:09:52 +01:00
|
|
|
row_pins = (board.P0_24, board.P1_00, board.P0_11, board.P1_04, board.P1_06)
|
2020-09-29 01:07:19 +02:00
|
|
|
diode_orientation = DiodeOrientation.COLUMNS
|
|
|
|
uart_pin = board.P0_08
|
|
|
|
rgb_pixel_pin = board.P0_06
|
2020-10-21 21:19:42 +02:00
|
|
|
data_pin = board.P0_08
|
|
|
|
i2c = board.I2C
|
|
|
|
powersave_pin = board.P0_13
|
2020-09-29 01:07:19 +02:00
|
|
|
|
2022-02-20 21:28:52 +01:00
|
|
|
# flake8: noqa
|
|
|
|
coord_mapping = [
|
|
|
|
0, 1, 2, 3, 4, 5, 36, 35, 34, 33, 32, 31,
|
|
|
|
6, 7, 8, 9, 10, 11, 42, 41, 40, 39, 38, 37,
|
|
|
|
12, 13, 14, 15, 16, 17, 48, 47, 46, 45, 44, 43,
|
|
|
|
18, 19, 20, 21, 22, 23, 54, 53, 52, 51, 50, 49,
|
|
|
|
26, 27, 28, 29, 30, 60, 59, 58, 57, 56,
|
|
|
|
]
|