Create nice_nano_v2.overlay
This commit is contained in:
parent
6ae65e0578
commit
a1a21990e1
1 changed files with 21 additions and 0 deletions
21
app/boards/shields/sofle/boards/nice_nano_v2.overlay
Normal file
21
app/boards/shields/sofle/boards/nice_nano_v2.overlay
Normal file
|
@ -0,0 +1,21 @@
|
|||
#include <dt-bindings/led/led.h>
|
||||
|
||||
&spi1 {
|
||||
|
||||
led_strip: ws2812@0 {
|
||||
compatible = "worldsemi,ws2812-spi";
|
||||
label = "WS2812";
|
||||
|
||||
/* SPI */
|
||||
reg = <0>;
|
||||
spi-max-frequency = <5250000>;
|
||||
|
||||
/* WS2812 */
|
||||
chain-length = <10>; /* number of LEDs */
|
||||
spi-one-frame = <0x70>; /* make sure to configure this properly for your SOC */
|
||||
spi-zero-frame = <0x40>; /* make sure to configure this properly for your SOC */
|
||||
color-mapping = <LED_COLOR_ID_GREEN
|
||||
LED_COLOR_ID_RED
|
||||
LED_COLOR_ID_BLUE>;
|
||||
};
|
||||
};
|
Loading…
Add table
Reference in a new issue