Messages in this thread | | | Subject | Re: Parallel port device | Date | Thu, 19 Aug 1999 15:33:44 +0200 (MEST) | From | (Rogier Wolff) |
| |
Adrian Baugh wrote: > Hi (I hope I remembered the anti-spam To: address correctly), > > I am building some hardware to allow my computer to control a mains > appliance, and was planning to have the parallel port drive an opto-isolated > relay. However, it occured to me that maybe it isn't possible to hold a bit > on the parallel port high for an arbitrarily long time.
Wrong.
> If so I'd need to put some kind of bistable circuit into my > hardware. Can anyone tell me whether this is the case or not?
No.
A long, long time ago I wrote a driver that would allow you to control individual bits on the parport. You're welcome to port it a reasonably recent kernel.
echo 1 > /dev/....
and the light goes on
echo 0 > ....
and the light goes off.
http://www.bitwizard.nl/freesw.html if I remember correctly. (Otherwise follow the free software link from the homepage).
Roger.
-- ** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 ** *-- BitWizard writes Linux device drivers for any device you may have! --* ------ Microsoft SELLS you Windows, Linux GIVES you the whole house ------
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |