private static final int PRODUCT_ID = 0x8; //Traffic Light Product Id
public static TrafficLight createNewInstance() {
try {
ClassPathLibraryLoader.loadNativeHIDLibrary();
HIDManager hidManager = HIDManager.getInstance();
HIDDevice hidDevice = hidManager.openById(VENDOR_ID, PRODUCT_ID, null);
dumpDebugInformation(hidDevice);
return new TrafficLightImpl(hidManager, hidDevice);
} catch (IOException e) {
throw new TrafficLightException("Traffic light USB device could not be found.", e);
}