Hello community, I followed the download and build guideline from ebenoist on his repo https://github.com/ebenoist/libblinkstick and I was able to download the makefiles and build it on my mac. I got the Blinkstick-CLI tool working. But, when I wanted to compile my own C file it gave me the error: “‘Blinkstick.h’ could not be found”. It’s weird because the Blinkstick-CLI tool is working which means I have all the libraries and software installed into my system. I wanted to reach out if anyone knows how I can tackle this error. - Thank you.
This is the code i am running:
#include <stdio.h>
#include <blinkstick.h>
int main() {
blinkstick_device* device = blinkstick_open();
if (device == NULL) {
printf("Failed to open BlinkStick device\n");
return 1;
}
blinkstick_set_color(device, 255, 0, 0); // Set color to red
usleep(1000000); // Sleep for 1 second
blinkstick_set_color(device, 0, 0, 0); // Turn off the LED
blinkstick_close(device);
return 0;
}