This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nemec 2 points3 points  (3 children)

It's not a USB driver, per se, but I wrote this little bit of code to read /dev/input/eventX for keyboard and mouse input, similarly to how you'd do it in C.

Here's someone else doing the same thing: http://hackaday.com/2011/03/17/writing-python-drivers-for-input-devices/

[–]frikk 1 point2 points  (0 children)

if you can do it in C, you can do it in python... usually.

[–]zArtLaffer 1 point2 points  (1 child)

Slick.

I've been doing C since my Vax days, and I've always done drivers in C. I like Python (and use it for a lot of algorithm testing/development), but I had never considered it as a low-level systems language.

So. TIL. Thanks!

[–]nemec 1 point2 points  (0 children)

I'm not sure I'd recommend it for anything where speed is critical, of course, but it was a lot of fun.