blob: f723f2e7ea7b40980d4c3c2a4066cd6cdce9d814 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <ws2811/ws2811.h>
#include <stdio.h>
#include "led_info.h"
int main() {
printf("Clearing LED lights...\n");
ws2811_return_t ret;
if ((ret = ws2811_init(&ledstring)) != WS2811_SUCCESS) {
printf("Error initilizing ws8211 strip: %s\n", ws2811_get_return_t_str(ret));
return 1;
}
for(int i = 0; i < LED_COUNT; i++) {
ledstring.channel[0].leds[i] = 0;
}
ws2811_render(&ledstring);
ws2811_fini(&ledstring);
return 0;
}
|