#Knob - Using LibUSB to control a Griffin PowerMate
This is a work in progress. The goal of this project is to demonstrate basic libusb functionality with the Griffin Powermate USB controller. Unfortunately, my development machine is a Mac, and OSX has kernel restrictions preventing HID devices from being used by applications in this way.
##Acknowledgements
The impetus for this project comes from attempting to debug the project by the same name in the Chrome App Samples repo. Thanks to user scheib for bringing the issue to my attention!
##Use
- Plug in a PowerMate
- Get libusb
- Edit the Makefile so that gcc can find libusb
- Run
make
on a linux command line. - You should see text detailing each step in the process.
##Steps
- Initialize libusb
- Enumerate devices
- Open the PowerMate device
- Allocate and send an output request
- Allocate and send an input request
- Close the device
- Deinitialize libusb