[Tutor] parallel port commands

Alan Gauld alan.gauld at btinternet.com
Fri Jun 12 18:18:11 CEST 2009


"Jacob Mansfield" <cyberjacob at googlemail.com> wrote 

> does anyone know how to replace the C comands inp() and outb() these are
> used for parallel port communication

These are non standard C functions and will depend on 
your compiler, OS  and hardware. You might be able to 
access them from Python via the ctypes module, especially 
if they are in a Windows DLL.

There is a way to access the parallel port from Python as was mentioned 
in a thread earlier this week(?) using pyParallel.

http://pyserial.wiki.sourceforge.net/pyParallel

But pyParallel is still in development...

HTH,


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list