I have a project that requires a user to hold or maintain pressure on a input switch for a short delay say 5 secs before the output will turn on. I need some ideas on how to start. Not sure but it seems like a if then statement would be a good start. Once the delay has expired the output will stay on or high as long as the user holds down the input switch. This project is for disabled children who have high tone which makes it hard for them to play games or turn on devices.
Main:
if pin 3=1 then jump ' If input is pressed then goto to jump code
goto Main
Jump:
pause 5 secs ' wait 5 secs before output 2 goes high
High 2 ' Output is high relay is on
As you can see I think I may need a little help.
Main:
if pin 3=1 then jump ' If input is pressed then goto to jump code
goto Main
Jump:
pause 5 secs ' wait 5 secs before output 2 goes high
High 2 ' Output is high relay is on
As you can see I think I may need a little help.
Last edited: