2019-11-07 01:28:54 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019, Nordic Semiconductor ASA
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2022-05-09 17:06:18 +08:00
|
|
|
#include <zephyr/dt-bindings/gpio/gpio.h>
|
|
|
|
#include <zephyr/dt-bindings/led/led.h>
|
2019-11-07 01:28:54 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
led_strip: ws2812 {
|
|
|
|
compatible = "worldsemi,ws2812-gpio";
|
|
|
|
|
|
|
|
chain-length = <16>; /* arbitrary */
|
2021-05-18 01:22:36 +08:00
|
|
|
color-mapping = <LED_COLOR_ID_GREEN
|
|
|
|
LED_COLOR_ID_RED
|
|
|
|
LED_COLOR_ID_BLUE>;
|
2019-11-07 01:28:54 +08:00
|
|
|
/*
|
|
|
|
* Arduino D11 / P0.25, which was chosen to match the pin
|
2020-04-03 00:24:56 +08:00
|
|
|
* used in nrf52dk_nrf52832.overlay.
|
2019-11-07 01:28:54 +08:00
|
|
|
*/
|
|
|
|
in-gpios = <&gpio0 25 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led-strip = &led_strip;
|
|
|
|
};
|
|
|
|
};
|