todbot/blink1 — pull request #1 by dylex (2012-12-06 22:33:19+00:00)
Title: generalize blink1-lib interface with blink1raw-lib backend

This allows some programs using blink1-lib to use the hidraw backend without the need for libusb. I plan to add more functionality to the blink1raw-lib interface in the future, but this was enough to build blink1raw against. So far this is not tested because I don't have my blink(1) yet, but it at least builds.

There are other ways of doing this and this is just a quick hack, but it would be nice if the blink1-lib code that knows how to generate the commands and only depends on a read() and write() interface were independent of the particular libusb backend, so that it could be used in other situations.