Package com.codeminders.hidapi

Examples of com.codeminders.hidapi.HIDManager


    deviceInitialize();
   
    List<HIDDeviceInfo> devlist = new ArrayList<HIDDeviceInfo>();

    try {
      HIDManager hidManager = HIDManager.getInstance();

      HIDDeviceInfo[] infos = hidManager.listDevices();

      for (HIDDeviceInfo info : infos) {
        if (info.getVendor_id() == VENDOR_ID
            && info.getProduct_id() == PRODUCT_ID) {
          devlist.add(info);
View Full Code Here


    Initialize();

    List<HIDDeviceInfo> SquareWearList = new ArrayList<HIDDeviceInfo>();

    try {
      HIDManager hidManager = HIDManager.getInstance();

      HIDDeviceInfo[] infos = hidManager.listDevices();

      for (HIDDeviceInfo info : infos) {
        if (info.getVendor_id() == VENDOR_ID
            && info.getProduct_id() == PRODUCT_ID) {
          SquareWearList.add(info);
View Full Code Here

    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);
        }
View Full Code Here

TOP

Related Classes of com.codeminders.hidapi.HIDManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.