python and parrallele port !
Graeme Cross
gjc at netspace.net.au
Thu Jan 25 07:57:37 EST 2001
On Wed, 24 Jan 2001 20:58:26 +0100, yves.rouquier <yves.rouquier at wanadoo.fr>
wrote:
>hello !
>Can i command electronic card on parrallele port in python ?
>Bye !
>
Yes, but it would help if you told us what operating system you are using
as this is a *very* O/S specific question.
Here are two relatively simple solutions for Linux & MS Windows:
1. Linux
Grab the 'par' driver from http://www.BitWizard.nl/par/
Then use regular file I/O to control the port bits that you are interested in.
2. MS Windows
Get one of the I/O device drivers listed at http://www.lvr.com/parport.htm.
I have found MapMemPlus (http://www.einev.ch/references/mondada/mmp/) to
work well for WinNT.
Then use calldll (from http://nightmare.com/software.html) to call the I/O
driver DLL directly from Python.
Cheers
Graeme
--
Graeme Cross <gcross at netspace.net.au>
More information about the Python-list
mailing list