Date: Mon, 29 Mar 2004 17:03:27 +0930 From: Tim Aslat <tim@spyderweb.com.au> To: freebsd-hardware@freebsd.org Subject: Parallel inputs Message-ID: <20040329170327.70b7d337@bofh.spyderweb.com.au>
index | next in thread | raw e-mail
Hi All, I've got a project under way and as usual, I've stumbled across a gap in my knowledge which I was hoping might have a simple solution. I need to get input from 4 switches (momentary contact normally open) into a script/program running on a FreeBSD 5.2.1 system, preferably from the parallel port. All I really need is a list of pins I need to be checking (lots of conflicting information is around) and a short script/program which lets me know when and which button was pressed. Unfortunately my hardware interface experience is nil and my knowledge of programming ioctl's is just as limited. I've looked at the ppilcd.c example and the ppi man page but I don't understand a lot of how it all goes together. Thanks in advance Tim -- Tim Aslat <tim@spyderweb.com.au> Spyderweb Consulting http://www.spyderweb.com.au P: +61 8 82243020 M: +61 0401088479home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040329170327.70b7d337>
