In this project, you can see how to take full control of USB devices using your own Python scripts. This chapter provides an introduction to how USB devices work; a short tutorial on how to figure out what you need to do to receive input from USB devices; and example code that reads input from a USB game controller and sends it to an Arduino sketch to control a servo motor and some LEDs.
Your guide to Yún developement. Arduino Meets Linux includes:
Take your Arduino projects to the next level. This book shows you how.