The Raspi is being promoted as an educational device that primarily uses Python. Inline with this, there are already some great examples online of people accessing the GPIO from Python. However, most off-the-shelf (rather than home brew) peripherals have USB interfaces. How does one go about accessing these using the standard Debian/Python card? Is there a Python library available, and a good tutorial?
Take the tour
×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.
|
USB is at heart just a serial communication device. How the data is communicated is standard, but what that data consists of is device dependant. Your controller manufacturer will have invented an api that consists of commands and messages of the form 'do this', or 'this is happening' If you know this api you should be able to communicate. Two possibly helpful links are http://sourceforge.net/apps/trac/pyusb/ http://www.digitalmihailo.com/post/usb-programming-with-python-on-linux A valuable source of information is USB Complete | |||||
|