Page 1 of 1

python code to access hardware.

Posted: Tue Dec 11, 2007 7:02 am
by davijordan
Is there code for python to pull or send bitwise data to either the parallel or joystick ports?

Posted: Tue Dec 11, 2007 7:58 am
by Philus
like this?
There's also one for the serial port.

My 5 minute google search didn't find anything useful for the joystick port, except that it should be doable, at least on linux. My python skills are probably not quite up to it though.

Posted: Tue Dec 11, 2007 5:46 pm
by riddlebox
I briefly did a project using pyparallel it is pretty easy to deal with

Posted: Wed Dec 12, 2007 8:24 am
by davijordan
I saw that on the net also. i will check it out. I am glad to know it works.

Posted: Wed Dec 12, 2007 9:45 am
by allix
you mention joystick are you writing a game? I am sure pygame has something so you can work with joysticks and stuff

http://www.pygame.org

Re: python code to access hardware.

Posted: Thu Dec 13, 2007 6:30 pm
by davijordan
Thanks for the link. At this point, all we are trying to do is to be able to use all ports possible for not only access to digital and analog data but to be able to control the ports via a scripting language. I have the last batch of parts on order for our project. Once I get those, it will be time to start building interfaces and testing.