- Edited
I want to use a cAPA102 light strip to use as an audio visualizer. The light strip uses spi to communicate using MOSI for the data and then a clock signal. I looked over the wiring, and it seems right to me. Also I ran: root@bela:~# ls -l /dev/spi*
and got the following messages.
crw------- 1 root root 153, 0 Nov 3 17:16 /dev/spidev1.0
crw------- 1 root root 153, 1 Nov 3 17:16 /dev/spidev2.0
crw------- 1 root root 153, 2 Nov 3 17:16 /dev/spidev2.1
I then found a library that I know works because I used it just with the pocket beagle.
#include "cAPA102.hpp"
if(cAPA102_Init(6, 2, 0, 128) == 0)
std::cout<<"works";
cAPA102_Set_Pixel_RGB(5, 255, 0, 0);
cAPA102_Refresh();
This code initializes the strip, then sets the 5th led to red.
I put this code in an auxiliary task, and then straight in setup and it does not light up. I am using spi 2.0 by the way which corresponds to spi 1. Also I am using an external battery to supply the power. When I ran it on the pocket beagle itself it ran fine, but it wont do anything with the bela.