Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
generalize blink1-lib interface with blink1raw-lib backend #1
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.