Code:INCLUDE "Elapsed.bas" Gosub ResetTime ' Reset Time to 0d-00:00:00.00 Gosub StartTimer ' Start the Elapsed Timer Main: if portb.0 = 1 then gosub dostuff 'a pin gets waggled IF MinutesChanged THEN MinutesChanged = 0 IF Minutes = 3 THEN 'if 3 minutes is up then do something here Gosub ResetTime ' Reset Time to 0d-00:00:00.00 ENDIF ENDIF goto main dostuff: ; waggle as desired Gosub ResetTime ' Reset Time to 0d-00:00:00.00 return
Bookmarks