You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sensestage edited this page Feb 25, 2014
·
2 revisions
On this page, I want to keep an overview of the HID devices that have been tested with the new HID implementation.
Code to run to make the test:
HIDUsage.hutDirectory_( "/home/nescivi/git/hid/hidapi_tonyrog/hut/" ); // adjust this path to where your external_libraries/hidapi/hut directory is
HID.findAvailable; // find available devices
HID.postAvailable; // post available devices
// open selected device:
~hid = HID.openAt(0); // by index of available devices
~hid.postCollections;
~hid.postElements;
~hid.postInputElements;
~hid.postOutputElements;
~hid.postFeatureElements;
// see if data is coming in
~hid.debug_( true );
// stop data posting
~hid.debug_( false );
// if any outputs are defined (adjust element id), check whether it works:
~hid.elements.at( 20 ).value = 255;
~hid.elements.at( 20 ).value = 0;