CHANGES THE TRIGGERING PERIOD OF THE SYSTEM OBJECT TIMER NUMBER N
ACTION
The command TIMER_INTERVAL N,P changes the triggering period of the system object TIMER designated by its number N: the TIMER will trigger at every P milliseconds.
Remark : The command does not depend on the TIMER status set by TIMER_ON or TIMER_OFF.
SYNTAX:
TIMER_INTERVAL N,P
USE ERROR EXAMPLE
rem every 3 seconds, displays a number from 1 to 10 then stops
label count
dim i%
rem create a TIMER
timer 1
rem change its period
on_timer 1,count
end
count:
i%=i%+1
print i%
if i%=5 then timer_off 1
return
TIMER_INTERVAL
TIMER_INTERVAL N,P
SEE ALSO
TIMER
ON_TIMER
TIMER_ON
TIMER_OFF
TIMER_OFF_ALL