24 lines
799 B
Python
24 lines
799 B
Python
import board
|
|
|
|
from kmk.extensions.layers import Layers
|
|
from kmk.extensions.rgb import RGB
|
|
from kmk.extensions.split import Split
|
|
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
|
|
from kmk.matrix import DiodeOrientation
|
|
|
|
|
|
class KMKKeyboard(_KMKKeyboard):
|
|
col_pins = (board.A0, board.A1, board.A2, board.A3, board.A4, board.A5, board.SCK)
|
|
row_pins = (board.D13, board.D11, board.D10, board.D9, board.D7)
|
|
diode_orientation = DiodeOrientation.COLUMNS
|
|
rgb_pixel_pin = board.TX
|
|
uart_pin = board.SCL
|
|
split_type = 'UART'
|
|
split_flip = True
|
|
split_offsets = [7, 7, 7, 7, 7]
|
|
|
|
rgb_ext = RGB(pixel_pin=rgb_pixel_pin, num_pixels=12)
|
|
layers_ext = Layers()
|
|
split = Split(uart_pin=uart_pin, split_offsets=split_offsets)
|
|
extensions = [rgb_ext, split, layers_ext]
|