mirror of
https://github.com/Ajetski/corne-zmk-config.git
synced 2025-11-27 13:42: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>;
|
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>;
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,7 @@ arch: arm
|
|||||||
features:
|
features:
|
||||||
- keys
|
- keys
|
||||||
- display
|
- display
|
||||||
|
- underglow
|
||||||
- encoder
|
- encoder
|
||||||
outputs:
|
outputs:
|
||||||
- usb
|
- usb
|
||||||
|
|||||||
@ -10,4 +10,3 @@
|
|||||||
&left_encoder {
|
&left_encoder {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|||||||
@ -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>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user