how to control lights with parallel port
Posted: Wed Jul 04, 2012 4:03 pm
Hi all, couldn't find related postings on this site.
I need to learn how to use Qbasic.4.5 under Windows 98SE to control individual lights using the parallel port (ECP).
1. just downloaded Qbasic.
2. my Basic programming skills are 20+ years in the freezer
3 I have the hardware for 8 115VAC controlled outlets,,,, all I need is how to use Qbasic to turn individual pins on, off, and query their status at any given time.
4. Out of this learning I hope to be able to apply #3 in a future home perimeter security program.
Any help with (basic) examples of the three functions I want to accomplish would be greatly appreciated. That would be my launching pad.
The one thing I need to clarify is if when turning a pin on, it will stay so until turned off, or, the program has to maintain it on constantly via a loop....
Thanks, Ron
I need to learn how to use Qbasic.4.5 under Windows 98SE to control individual lights using the parallel port (ECP).
1. just downloaded Qbasic.
2. my Basic programming skills are 20+ years in the freezer
3 I have the hardware for 8 115VAC controlled outlets,,,, all I need is how to use Qbasic to turn individual pins on, off, and query their status at any given time.
4. Out of this learning I hope to be able to apply #3 in a future home perimeter security program.
Any help with (basic) examples of the three functions I want to accomplish would be greatly appreciated. That would be my launching pad.
The one thing I need to clarify is if when turning a pin on, it will stay so until turned off, or, the program has to maintain it on constantly via a loop....
Thanks, Ron