A blinkstick library in C
C CMake Shell
Latest commit c09b2ad Feb 21, 2017 @ebenoist committed on GitHub Merge pull request #6 from jmtd/fix-cmake
Fix cmake

README.md

libBlinkStick

A blinkstick library in C with few dependencies.

Requirements

  • libusb, brew install libusb on Mac OS X
  • clang
  • cmake brew install cmake

Running tests

  • script/test

To build the test app

  • script/build or script/build --disable-tests to disable the unit tests.
  • ./target/blinkstick --color 255 0 0

Installing the library

This is a TODO. I will be including a pkg-config and cmake package for easy linking.

Warning

This is largely a work in progress. Expect nothing to work, things to change, etc...

Example

#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;
}