-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathesp32c6_devkitc.overlay
More file actions
43 lines (37 loc) · 848 Bytes
/
esp32c6_devkitc.overlay
File metadata and controls
43 lines (37 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <zephyr/dt-bindings/led/led.h>
&spi2 {
/* Workaround to support WS2812 driver */
line-idle-low;
led_strip: ws2812@0 {
compatible = "worldsemi,ws2812-spi";
/* SPI */
reg = <0>; /* ignored, but necessary for SPI bindings */
spi-max-frequency = <6400000>;
/* WS2812 */
chain-length = <1>; /* arbitrary; change at will */
spi-cpha;
spi-one-frame = <0xf0>; /* 11110000: 625 ns high and 625 ns low */
spi-zero-frame = <0xc0>; /* 11000000: 312.5 ns high and 937.5 ns low */
color-mapping = <LED_COLOR_ID_GREEN
LED_COLOR_ID_RED
LED_COLOR_ID_BLUE>;
};
};
&pinctrl {
spim2_default: spim2_default {
group2 {
pinmux = <SPIM2_MOSI_GPIO8>;
};
};
};
/ {
leds {
compatible = "gpio-leds";
blinking_led:led0 {
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
};
};
aliases {
led-strip = &led_strip;
};
};