If there is no new incoming data (IR sensor is not being pulled low), then it's done. You could put in a simple counter and check, a la:
' parse incoming IR message
' then....
Start_Wait:
cntr = 0
Wait_Here:
IF irDetector = 1 THEN
cntr = cntr + 1
IF cntr > 50 THEN Released ' you may need to play with this value
GOTO Wait_Here
ELSE
GOTO Start_Wait
ENDIF
Released:
' and onward...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ When the going gets weird, the weird turn pro. -- HST
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php