mirror of
https://github.com/Ajetski/corne-zmk-config.git
synced 2025-11-27 12:02:45 -10:00
refactor: consolidate RGB settings
This commit is contained in:
parent
4bdeb73cc5
commit
3888ae0d04
@ -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>;
|
||||
|
||||
|
||||
@ -7,6 +7,7 @@ arch: arm
|
||||
features:
|
||||
- keys
|
||||
- display
|
||||
- underglow
|
||||
- encoder
|
||||
outputs:
|
||||
- usb
|
||||
|
||||
@ -10,4 +10,3 @@
|
||||
&left_encoder {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
@ -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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user