Hi guys,
this is my first post, so read with noob caution!
so im doing this project which involves having a door unlock, the door lock (a solenoid) has to be help open until the door is closed. I know i need an interrupt command but don't know how to use it properly
I have this code which will pause for 2/100's of a second before returning, but i need it to wait until the condition "btn1 = 1" to be true.
THANKS!
BillyJ
Here's the current code for the 2/100's pause:
this is my first post, so read with noob caution!
so im doing this project which involves having a door unlock, the door lock (a solenoid) has to be help open until the door is closed. I know i need an interrupt command but don't know how to use it properly
I have this code which will pause for 2/100's of a second before returning, but i need it to wait until the condition "btn1 = 1" to be true.
THANKS!
BillyJ
Here's the current code for the 2/100's pause:
Rich (BB code):
if bnt1 = 0 then
interrupt
pause 20
setint %10000000,%10000000
return