Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/led/led.h>
&arduino_spi {
status = "okay";
compatible = "nordic,nrf-spim";
led_strip: ws2812@0 {
compatible = "worldsemi,ws2812-spi";
label = "WS2812";
/* SPI */
reg = <0>; /* ignored, but necessary for SPI bindings */
spi-max-frequency = <4000000>;
/* WS2812 */
chain-length = <12>;
color-mapping = <
LED_COLOR_ID_GREEN
LED_COLOR_ID_RED
LED_COLOR_ID_BLUE
>;
spi-one-frame = <0x70>;
spi-zero-frame = <0x40>;
};
};
/ {
aliases {
led-strip = &led_strip;
};
};
34c7d49e0This file is pinned to the selected release. Download the original to open it in your design tool.