jruby-blinkstick - blinkstick fun with jRuby
I just got my blinkstick and couldn't wait to play with it. I soldered it - plugged into my MacBook and everything was working. When I used for Windows 8 I had to install drivers for it, however, not everyone has the chance to install drivers so I went through the different options.
The working processing example for the blinkstick, however, was working without any driver installions. This implementation uses the hidapi library as driver. I looked through the processing sample applications and rebuilt the BlinkStick.jar from it with out any modifications. I gave jRuby 1.7.3 and jRuby 1.7.11 a shot and it worked. Most of the tricky work to find a proper way to access the Java classes and how to set it up.
Take this code example as working state for your own experiments.
You can run the example by running the command:
blinkserver.rb features a sinatra enabled blinkserver.