I have custom board with nrf52833 Soc. I was trying to implement WS2812 LED driver in zephyr which connected to (P1.09). according to WS2812 Sample Application I copy the .overlay and .conf of nrf52dk_nrf52832 and past it to my nrf52833. and change in overlay the pin that I use in the led_ws2812 which is D32 (P1.09). However when I build and run the example it did not work. I dont know what my error or i need to add somthing in DT?
any one can help?
Im working with nrf sdk 1.7.0 with segger IDE.
.conf: CONFIG_SPI=y
# This driver only uses spi_write() with the SPIM instance it allocates,
# so PAN 58 doesn't matter, because the RX length is always 0.
CONFIG_SOC_NRF52832_ALLOW_SPIM_DESPITE_PAN_58=y
.overlay /*
* Copyright (c) 2019, Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <dt-bindings/led/led.h>
#include "../nrf52-bindings.h"
&spi1 { /* */
compatible = "nordic,nrf-spim";
mosi-pin = <32>;//MOSI on D32 : P1.09
led_strip: ws2812@0 {
compatible = "worldsemi,ws2812-spi";
label = "WS2812";
/* SPI */
reg = <0>; /* ignored, but necessary for SPI bindings */
spi-max-frequency = <SPI_FREQ>;
/* WS2812 */
chain-length = <1>; /* arbitrary; change at will */
color-mapping = <LED_COLOR_ID_GREEN
LED_COLOR_ID_RED
LED_COLOR_ID_BLUE>;
spi-one-frame = <ONE_FRAME>;
spi-zero-frame = <ZERO_FRAME>;
};
};
/ {
aliases {
led-strip = &led_strip;
};
};