File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
boards/arm/adafruit_kb2040 Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 5050
5151 clocks_default: clocks_default {
5252 };
53+
54+ ws2812_pio0_default: ws2812_pio0_default {
55+ ws2812 {
56+ pinmux = <PIO0_P17>;
57+ };
58+ };
5359};
Original file line number Diff line number Diff line change 1111#include "adafruit_kb2040-pinctrl.dtsi"
1212#include "sparkfun_pro_micro_connector.dtsi"
1313#include <freq.h>
14+ #include <zephyr/dt-bindings/led/led.h>
1415
1516/ {
1617 chosen {
2425
2526 aliases {
2627 watchdog0 = &wdt0;
28+ led-strip = &ws2812;
2729 };
2830};
2931
9496 pinctrl-names = "default";
9597};
9698
99+ &pio0 {
100+ status = "okay";
101+
102+ pio-ws2812 {
103+ compatible = "worldsemi,ws2812-rpi_pico-pio";
104+ status = "okay";
105+ pinctrl-0 = <&ws2812_pio0_default>;
106+ pinctrl-names = "default";
107+ bit-waveform = <3>, <3>, <4>;
108+
109+ ws2812: ws2812 {
110+ status = "okay";
111+ output-pin = <17>;
112+ chain-length = <1>;
113+ color-mapping = <LED_COLOR_ID_GREEN
114+ LED_COLOR_ID_RED
115+ LED_COLOR_ID_BLUE>;
116+ reset-delay = <280>;
117+ frequency = <800000>;
118+ };
119+ };
120+ };
121+
97122zephyr_udc0: &usbd {
98123 status = "okay";
99124};
You can’t perform that action at this time.
0 commit comments