Controlling the Parallel Port

Bill Scherer Bill.Scherer at VerizonWireless.com
Wed Dec 27 10:48:11 EST 2000


SWIG, the Simplified Wrapper and Interface Generator, is available at
http://www.swig.org/
It makes it easier, sometimes trivial, to make a module for your
favorite interpreter from a c lib.

For the parapin lib, it was trivial...

If you get SWIG and the parapin lib, you can have a working parapin
module for Python in about five minutes...


-Bill

Simon Faulkner wrote:
> 
> Cheers Bill,
> 
> I have found the link and, indeed, several other c links.
> 
> So, pardon my Python ignorance, but what is SWIG?
> 
> I am already searching...
> 
> Simon
> 
> On Wed, 27 Dec 2000 09:52:43 -0500, Bill Scherer
> <Bill.Scherer at VerizonWireless.com> wrote:
> 
> >Simon
> >
> >There is a parallel port library for linux at
> >
> >http://www.circlemud.org/~jelson/software/parapin/
> >
> >that is simple to SWIG into a Python module.
> >I can send you the .i file for this if you want.
> >
> >I haven't really used it, but it loads and reads the port status just
> >fine.
> >
> >
> >-Bill
> >
> >Simon Faulkner wrote:
> >>
> >> Is it easy to control (read/write) the Parallel Port in linux using
> >> Python?
> >>
> >> I am hoping to use it to drive some simple electronics
> >>
> >> (Usual disclaimer understood - If it smokes then you probably got the
> >> wiring wrong!)
> >>
> >> Simon
> >> Simon Faulkner
> >> --
> >> http://www.python.org/mailman/listinfo/python-list
> 
> Simon Faulkner
> --
> http://www.python.org/mailman/listinfo/python-list

-- 
William K. Scherer
Sr. Member of Applications Staff - Verizon Wireless
Bill.Scherer_at_VerizonWireless.com




More information about the Python-list mailing list