Page 1 of 1

microsecond WAIT

Posted: Mon Feb 04, 2013 8:15 pm
by YahooArchive
>from the help line
>Is there a way to use WAIT with microseconds? If not, I would like to request
this function as it would be handy. Is there another way to do this easily?

There are examples of this in the BASIC libraries, where it is normally done in
line using the builtin TIMER.

START = TIMER
WHILE (TIMER-START < numOfMicroseconds)
LOOP

It could be done as a SUB

SUB WAIT_USECONDS (numOfMicroseconds)
DIM START
START = TIMER
WHILE (TIMER-START < numOfMicroseconds)
LOOP
END SUB