2020-10-21 21:19:42 +02:00
|
|
|
import board
|
|
|
|
|
|
|
|
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
|
2022-10-09 17:44:45 +02:00
|
|
|
from kmk.quickpin.pro_micro.boardsource_blok import pinout as pins
|
2022-04-09 02:09:24 +02:00
|
|
|
from kmk.scanners import DiodeOrientation
|
2020-10-21 21:19:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
class KMKKeyboard(_KMKKeyboard):
|
2022-10-09 17:44:45 +02:00
|
|
|
col_pins = (
|
|
|
|
board.pins[19],
|
|
|
|
board.pins[18],
|
|
|
|
board.pins[17],
|
|
|
|
board.pins[16],
|
|
|
|
board.pins[15],
|
|
|
|
)
|
|
|
|
row_pins = (board.pins[13], board.pins[12], board.pins[10], board.pins[11])
|
2020-10-21 21:19:42 +02:00
|
|
|
diode_orientation = DiodeOrientation.COLUMNS
|
2022-10-09 17:44:45 +02:00
|
|
|
data_pin = board.pins[1]
|
|
|
|
rgb_pixel_pin = pins[0]
|
2020-10-21 21:19:42 +02:00
|
|
|
rgb_num_pixels = 12
|
|
|
|
i2c = board.I2C
|
|
|
|
|
2022-02-04 22:21:46 +01:00
|
|
|
# NOQA
|
2022-02-20 21:28:52 +01:00
|
|
|
# flake8: noqa
|
2022-10-09 17:44:45 +02:00
|
|
|
# fmt: off
|
2022-02-20 21:28:52 +01:00
|
|
|
coord_mapping = [
|
|
|
|
0, 1, 2, 3, 4, 20, 21, 22, 23, 24,
|
|
|
|
5, 6, 7, 8, 9, 25, 26, 27, 28, 29,
|
|
|
|
10, 11, 12, 13, 14, 30, 31, 32, 33, 34,
|
|
|
|
17, 18, 19, 35, 36, 37,
|
|
|
|
]
|