Saturday, 2 October 2010

Parallel port output in Linux with Python

Parallel port output

 

http://pyserial.sourceforge.net/pyparallel.html

http://www.hare.demon.co.uk/ioport/ioport.html

http://bigasterisk.com/projects/parallel

http://www.ladyada.net/make/spokepov/download.html

http://book.opensourceproject.org.cn/kernel/kernelpri/index.html?page=opensource/0131181637/ch05lev1sec4.html

 

pyParallel

On Ubuntu 10.04 pyParallel can be installed from Synaptic.

Then start python:

>>> import parallel

>>> p=parallel.Parallel()

but that won't work

unless you first make /dev/parpart0 writable

# sudo chmod o+wr /dev/parport0

and unload the lp module

# sudo rmmod lp

For permanent changes it is best to add the user to the lp group instead of changing the permissions.  You still need to unload the lp module though.  Presumably you can do this in the init scripts.

 

 

 

Posted via email from kwhitefoot's posterous

No comments:

Post a Comment

Followers