move boards out of kmk

This commit is contained in:
Kyle Brown
2020-10-29 16:42:04 -07:00
parent 2edad3c371
commit 7566981966
26 changed files with 25 additions and 14 deletions

View File

@@ -0,0 +1,26 @@
import board
from kmk.extensions.layers import Layers
from kmk.extensions.rgb import RGB
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
from kmk.matrix import DiodeOrientation
class KMKKeyboard(_KMKKeyboard):
col_pins = (
board.RX,
board.D13,
board.A0,
board.D11,
board.A4,
board.A5,
board.D10,
board.D9,
board.SCK,
)
diode_orientation = DiodeOrientation.COLUMNS
rgb_pixel_pin = board.TX
rgb_ext = RGB(pixel_pin=rgb_pixel_pin, num_pixels=9)
layers_ext = Layers()
extensions = [rgb_ext, layers_ext]