Parallel inputs

Tim Aslat tim at spyderweb.com.au
Sun Mar 28 23:33:27 PST 2004


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 at spyderweb.com.au>
Spyderweb Consulting
http://www.spyderweb.com.au
P: +61 8 82243020    M: +61 0401088479


More information about the freebsd-hardware mailing list