refactor: consolidate RGB settings

This commit is contained in:
honorless 2024-11-17 16:06:15 -05:00
parent 4bdeb73cc5
commit 3888ae0d04
No known key found for this signature in database
GPG Key ID: 1B48A311ABE8DA4D
4 changed files with 2 additions and 27 deletions

View File

@ -223,7 +223,7 @@ nice_view_spi: &spi0 {
spi-max-frequency = <4000000>; spi-max-frequency = <4000000>;
/* WS2812 */ /* WS2812 */
chain-length = <6>; chain-length = <21>;
spi-one-frame = <0x70>; spi-one-frame = <0x70>;
spi-zero-frame = <0x40>; spi-zero-frame = <0x40>;

View File

@ -7,6 +7,7 @@ arch: arm
features: features:
- keys - keys
- display - display
- underglow
- encoder - encoder
outputs: outputs:
- usb - usb

View File

@ -10,4 +10,3 @@
&left_encoder { &left_encoder {
status = "okay"; status = "okay";
}; };
};

View File

@ -10,28 +10,3 @@
&default_transform { &default_transform {
col-offset = <7>; 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>;
};
};
};