Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.formatting.provider": "black"
}
38 changes: 38 additions & 0 deletions keyboards/SplitKB-Kyria-KB2040-L/kb.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import board

from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
from kmk.scanners import DiodeOrientation


class KMKKeyboard(_KMKKeyboard):
col_pins = (
board.A3,
board.A2,
board.A1,
board.A0,
board.SCK,
board.MISO,
board.MOSI,
board.D10,
)
row_pins = (board.D8, board.D7, board.D6, board.D4)
diode_orientation = DiodeOrientation.COL2ROW
data_pin = board.D1
rgb_pixel_pin = board.D0
SCL = board.D3
SDA = board.D2
encoder_pin_0 = board.D5
encoder_pin_1 = board.D9
brightness_limit = 0.5
num_pixels = 20
# These are the underglow LED positions on the Kyria
led_key_pos = [9, 8, 5, 6, 7, 4, 2, 3, 1, 0, 10, 11, 13, 12, 14, 17, 16, 15, 18, 19]

# fmt: off
coord_mapping = [
0, 1, 2, 3, 4, 5, 37, 36, 35, 34, 33, 32,
8, 9, 10, 11, 12, 13, 45, 44, 43, 42, 41, 40,
16, 17, 18, 19, 20, 21, 22, 23, 55, 54, 53, 52, 51, 50, 49, 48,
27, 28, 29, 30, 31, 63, 62, 61, 60, 59
]
# fmt: on
Loading