Date: Thu, 12 Jun 2003 13:44:10 +0700 (ICT) From: Olivier Nicole <Olivier.Nicole@ait.ac.th> To: bernard.dugas@is-production.com Cc: freebsd-questions@freebsd.org Subject: Re: how to talk to the serial and parallel ports through a C Message-ID: <200306120644.NAA24236@bazooka.cs.ait.ac.th> In-Reply-To: <3EE79ED4.93DB9224@is-production.com> (message from Bernard Dugas on Wed, 11 Jun 2003 23:27:49 %2B0200)
next in thread | previous in thread | raw e-mail | index | archive | help
I'll reply on the parallel port: fd_relay=open("/dev/ppi0", O_WRONLY); ioctl(fd_relay, PPISDATA, value) Value being an 8 bits value. That works wonders with the relay card from Quality Kits http://www.qkits.com/serv/qkits/diy/pages/QK74.asp As for the entry, as I only needed 2 contacts, I used mouse button (plus it provides a nice testing interface, just click on your mouse buttons :) Olivier
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306120644.NAA24236>