This library is available from 86Duino Coding 104, and implements the API of Arduino Due’s USBHost library to access USB keyboards and mice via the USB 2.0 port of 86Duino.
The MouseController library enables communication between a connected USB mouse and the 86Duino.
The KeyboardController library enables communication with a connected USB keyboard.
Note: to make the KeyboardController library work, the BIOS of 86Duino should be Guava 0.95 or above. (If your 86Duino has an older BIOS, you can upgrade the BIOS using the SysImage tool.)
The following are examples of the USBHost library from the Arduino Tutorial that can work on the 86Duino boards:
－ MouseController: Demonstrates the MouseController commands in one program.
－ KeyboardController: Demonstrates the KeyboardController commands in one program.
Actually, with the help of 86Duino’s BIOS, USB keyboards and mice are treated like PS/2 keyboards and mice; so on 86Duino, one can simply access USB keyboards using the standard C input/output functions, such as getchar() and scanf(), and access USB mice using the common INT 33H mouse interrupt service routines. We implementing the USBHost library is just for the purpose of compatibility to Arduino Due.
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.