1968neil
Senior Member
Hi guys
Need a little help here.
I need to use the same switch to do 3 things.
Ive done 2 of them using :
if pbswitch = down then switchdown ' is switch pressed
branch counter, (talkthruoff, talkthruon, recovery) 'branch on counter state
counter = 0 'reset counter
goto loop1
switchdown:
counter = counter + 1 'Increment counter
sdloop:
if pbswitch = down then sdloop ' wait til switch released
goto loop1
What i need to do is hold the switch for 3 or so seconds then it will goto another piece of code.
Any help appreciated.
Regards
Neil
Need a little help here.
I need to use the same switch to do 3 things.
Ive done 2 of them using :
if pbswitch = down then switchdown ' is switch pressed
branch counter, (talkthruoff, talkthruon, recovery) 'branch on counter state
counter = 0 'reset counter
goto loop1
switchdown:
counter = counter + 1 'Increment counter
sdloop:
if pbswitch = down then sdloop ' wait til switch released
goto loop1
What i need to do is hold the switch for 3 or so seconds then it will goto another piece of code.
Any help appreciated.
Regards
Neil