[Mono-list] Accessing Parallel port with mono

Paolo Molaro lupus@ximian.com
Mon, 9 Aug 2004 10:21:24 +0200


On 08/09/04 Richard McGrath wrote:
> Does anyone know how to access to parallel port with mono?
> 
> That is I need to access the various pins and make them high/low as 
> appropriate for a small electronics project.
> 
> Is it a matter of writing the correct information to /dev/parallel (or 
> similar)?

On Linux systems you need to access /dev/parport0 etc. using
open() read(), write() and ioctl(). Googling for "parport ioctl"
should give you a few hints and sample code.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better