#include #include #include #include #include "led_info.h" int main() { ws2811_return_t ret; if ((ret = ws2811_init(&ledstring)) != WS2811_SUCCESS) { printf("Error initilizing ws2811 strip: %s\n", ws2811_get_return_t_str(ret)); return 1; } for(;;) { for(int i = 0; i < LED_COUNT; i++) { ledstring.channel[0].leds[i] = 0xff0000; ws2811_render(&ledstring); } for(int i = 0; i < LED_COUNT; i++) { ledstring.channel[0].leds[i] = 0x00ff00; ws2811_render(&ledstring); } for(int i = 0; i < LED_COUNT; i++) { ledstring.channel[0].leds[i] = 0x0000ff; ws2811_render(&ledstring); } } }