I have the ws2812 example working with ncs v1.5 on board actinius_icarus_som
However, when I combine it with other code such as for a custom SPI device and udp comms it no longer works
#define STRIP_LABEL DT_LABEL(DT_ALIAS(led_strip))
#define STRIP_NUM_PIXELS DT_PROP(DT_ALIAS(led_strip), chain_length)
in main()
const struct device *strip = device_get_binding(STRIP_LABEL);
if (strip) {
LOG_INF("Found LED strip device %s", STRIP_LABEL);
} else {
LOG_ERR("LED strip device %s not found", STRIP_LABEL);
return;
}
Works when not surrounded with anything else but with other code it reports that the WS2812 is not found.
This overlay (attached) works OK the the simple code example but not when more code is added.
4645.actinius_icarus_som_ns.overlay
Note: this puts the device on spi1 which is not otherwise used by the board in question.
Solved: the problem was in something missing from prj.conf. I discovered this by comparing files in the build folders from the two examples.
Found a significant difference in build/zephyr/.config.