python code to access hardware.

Hey drop us a line about the show. Feel free to ask questions, provide feedback and criticism, or just ramble on about anything your little heart desires.

Moderators: snarkout, Patrick, dann

Post Reply
davijordan

python code to access hardware.

Post by davijordan » Tue Dec 11, 2007 7:02 am

Is there code for python to pull or send bitwise data to either the parallel or joystick ports?

Philus
Posts: 5
Joined: Mon Dec 10, 2007 7:17 am
Location: Tromsoe, Norway
Contact:

Post by Philus » Tue Dec 11, 2007 7:58 am

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.

User avatar
riddlebox
Posts: 86
Joined: Mon Jul 03, 2006 2:09 pm
Contact:

Post by riddlebox » Tue Dec 11, 2007 5:46 pm

I briefly did a project using pyparallel it is pretty easy to deal with

davijordan

Post by davijordan » Wed Dec 12, 2007 8:24 am

I saw that on the net also. i will check it out. I am glad to know it works.

User avatar
allix
Posts: 1079
Joined: Tue Dec 19, 2006 5:07 pm
Location: London, England
Contact:

Post by allix » Wed Dec 12, 2007 9:45 am

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
Арте́льный горшо́к гу́ще кипи́т
Working as a team produces better results
Russian Proverb

davijordan

Re: python code to access hardware.

Post by davijordan » Thu Dec 13, 2007 6:30 pm

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.

Post Reply