Simple USB control - how to blink an LED via code?
June 25, 2009 1:28 PM
Subscribe
This is something that's been bugging me for a while....
Given a USB port and an LED (perhaps more components required?), and a program running on the PC, how do you get from here, to the simplest case I can think of - making a line of code flip the state of an LED? Either a practical example, or some recommendations for topics that would drag me in the right direction.
My interest in this is because although I get computers, I don't entirely get how they control the hardware that is attached. I have a vague sense of it, but it's too fuzzy to call knowledge.
So I guess I'm curious about very simple driver development, just as a conceptual link to understanding what goes on when something gets plugged in.
If it helps, my language of choice is Python because of the speed and flexibility of development, plus the interpreter which is a great way to get a feel for the language. Is Python up to the task? I'd prefer not to code in C/C++, and I'd really like to avoid Java. Windows preferred, but I've got Fedora and Ubuntu on other PC's if it drastically simplifies it.
posted by BishopsLoveScifi to technology (12 comments total)
9 users marked this as a favorite
posted by XMLicious at 1:48 PM on June 25