Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A blinkstick library in C

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages