RGB fix
small RGB touchup convert boards to extensions
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
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
|
||||
|
||||
@@ -18,3 +20,7 @@ class KMKKeyboard(_KMKKeyboard):
|
||||
)
|
||||
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]
|
||||
|
Reference in New Issue
Block a user