USB

Warning

This feature is available only with a License - Contact us for more details

UsbHid Module

the UsbHid module handles the device listing.

.listDevices

var vid = 0x16c0 ;
var pid = 0x0486 ; // Teensy 4.1

var devices = UsbHid.listDevices( vid, pid );
print( 'We found ' + devices.length + ' devices matching.');
print( JSON.stringify( devices )); 

.makeDevice

Last update: December 21, 2021