A blinkstick library in C with few dependencies.
- libusb,
brew install libusbon Mac OS X - clang
- cmake
brew install cmake
script/test
script/buildorscript/build --disable-teststo disable the unit tests../target/blinkstick --color 255 0 0
This is a TODO. I will be including a pkg-config and cmake package for easy linking.
This is largely a work in progress. Expect nothing to work, things to change, etc...
#include <libblinkstick.h>
int main() {
blinkstick_device *device = find_blinkstick();
rgb_color *red = rgb_color_factory(255,0,0);
set_color(color, device);
destroy_color(color);
destroy_blinkstick(device);
return 0;
}