I have recently been trying to turn on my rgb led strip all at once however i have only found out how to address them one at a time. Are these leds able to be addressed as one? I havee tried several libraries like fastLED and various arduino librraries which I would convert over but nothing seems to work. Any ideas?
Heres my code:
#include <util/delay.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include "light_ws2812.h"
struct cRGB led[24];
int main(void)
{
DDRB = 0b00000001;
uint8_t pixelCount = 24;
while (1)
{
uint8_t i = 0;
for (i = pixelCount; i > 1; i--){
led[i - 1] = led[i - 2];
}
led[0].r = 0;
led[0].g = 0;
led[0].b = 255; // color code
ws2812_setleds(led, pixelCount);
}
}