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
|
|
|
row_pins = (board.pins[19], board.pins[18], board.pins[17], board.pins[16])
|
|
|
|
col_pins = (
|
|
|
|
board.pins[6],
|
|
|
|
board.pins[7],
|
|
|
|
board.pins[8],
|
|
|
|
board.pins[9],
|
|
|
|
board.pins[10],
|
|
|
|
)
|
2020-10-21 21:19:42 +02:00
|
|
|
diode_orientation = DiodeOrientation.COLUMNS
|
2022-10-09 17:44:45 +02:00
|
|
|
rgb_pixel_pin = pins[0]
|
2020-10-21 21:19:42 +02:00
|
|
|
rgb_num_pixels = 40
|
2022-10-09 17:44:45 +02:00
|
|
|
data_pin = board.pins[1]
|
2020-10-21 21:19:42 +02:00
|
|
|
i2c = board.I2C
|