refactor: consolidate RGB settings

This commit is contained in:
honorless
2024-11-17 16:06:15 -05:00
parent 4bdeb73cc5
commit 3888ae0d04
4 changed files with 2 additions and 27 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ nice_view_spi: &spi0 {
spi-max-frequency = <4000000>;
/* WS2812 */
chain-length = <6>;
chain-length = <21>;
spi-one-frame = <0x70>;
spi-zero-frame = <0x40>;
+1
View File
@@ -7,6 +7,7 @@ arch: arm
features:
- keys
- display
- underglow
- encoder
outputs:
- usb
-1
View File
@@ -10,4 +10,3 @@
&left_encoder {
status = "okay";
};
};
-25
View File
@@ -10,28 +10,3 @@
&default_transform {
col-offset = <7>;
};
&spi3 {
compatible = "nordic,nrf-spim";
status = "okay";
pinctrl-0 = <&spi3_default>;
pinctrl-1 = <&spi3_sleep>;
pinctrl-names = "default", "sleep";
led_strip: ws2812@0 {
compatible = "worldsemi,ws2812-spi";
/* SPI */
reg = <0>; /* ignored, but necessary for SPI bindings */
spi-max-frequency = <4000000>;
/* WS2812 */
chain-length = <7>; /* 6 keys have underglow at the moment */
spi-one-frame = <0x70>;
spi-zero-frame = <0x40>;
color-mapping = <LED_COLOR_ID_GREEN LED_COLOR_ID_RED LED_COLOR_ID_BLUE>;
};
};
};