first probably-working version of keymapping for RP2.65-F

This commit is contained in:
BigTuna94 2022-03-22 21:34:19 -04:00 committed by Kyle Brown
parent 256c0f1c55
commit 239b09d94d
2 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,39 @@
import board
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
from kmk.matrix import DiodeOrientation
class KMKKeyboard(_KMKKeyboard):
col_pins = (
board.COL0,
board.COL1,
board.COL2,
board.COL3,
board.COL4,
board.COL5,
board.COL6,
board.COL7,
)
row_pins = (
board.ROW0,
board.ROW1,
board.ROW2,
board.ROW3,
board.ROW4,
board.ROW5,
board.ROW6,
board.ROW7,
board.ROW8,
board.ROW9,
)
diode_orientation = DiodeOrientation.COL2ROW
rgb_pixel_pin = board.LED
rgb_num_pixels = 70
coord_mapping = [
0, 8, 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15,
24, 17, 25, 18, 26, 19, 27, 20, 28, 21, 29, 22, 23, 31,
40, 33, 41, 34, 42, 35, 43, 36, 44, 37, 45, 38, 46, 39, 47,
56, 49, 57, 50, 58, 51, 59, 52, 60, 53, 61, 54, 55, 63,
72, 65, 73, 74, 75, 76, 69, 77, 78, 71, 79,
]

View File

@ -0,0 +1,21 @@
from kb import KMKKeyboard
from kmk.extensions.RGB import RGB, AnimationModes
from kmk.keys import KC
from kmk.modules.layers import Layers
keyboard = KMKKeyboard()
keyboard.modules.append(Layers())
keyboard.keymap = [
[
KC.GESC, KC.N1, KC.N2, KC.N3, KC.N4, KC.N5, KC.N6, KC.N7, KC.N8, KC.N9, KC.N0, KC.BSLS, KC.DEL, KC.MINS, KC.EQUAL,
KC.TAB, KC.Q, KC.W, KC.E, KC.R, KC.T, KC.Y, KC.U, KC.I, KC.O, KC.P, KC.BSPC, KC.LBRC, KC.RBRC,
KC.LCTRL, KC.A, KC.S, KC.D, KC.F, KC.G, KC.H, KC.J, KC.K, KC.L, KC.SCLN, KC.QUOT, KC.ENTER, KC.HOME, KC.END,
KC.LSFT, KC.Z, KC.X, KC.C, KC.V, KC.B, KC.N, KC.M, KC.COMM, KC.DOT, KC.SLSH, KC.RSFT, KC.UP,
KC.LCTRL, KC.LGUI, KC.SPC, KC.SPC, KC.SPC, KC.SPC, KC.RALT, KC.APP, KC.LEFT, KC.DOWN, KC.RIGHT,
],
]
if __name__ == '__main__':
keyboard.go()