4 Replies Latest reply on May 5, 2014 10:04 AM by bensmac

    Reading USB Host events using Arduino IDE

    LucasAinsworth

      I'd like to build some basic sketches using a USB mouse or keyboard (connected to the USB Host port) as an input for the Galileo using the Arduino IDE. The release notes say that:

       

      "Any USB device with a button (including a keyboard) will generate events that can be captured. Note: This release does not convert USB events to ASCII as is expected by the sketch software. This is because the Linux input sub-system returns absolute key positions instead of keyboard scancodes as is expected by the Arduino library."

       

      I assume this means that USB events are read and stored in linux somewhere, but are not exposed in the way the Arduino USBHost library expects.  Has anyone had success getting the USBHost library to see the USB events, either using a linux interpreter or changing the library?

       

      Any help or suggestions are much appreciated!