RCX: utils
Generally helpful procs for using occam-pi on the Mindstorms.
SIGNAL - The SIGNAL datatype and SIG value allow us to define protocols with SIGNALs more clearly, instead of using BOOL valuesrunning.datalog - Display a 'spinning' circle, which completes in quartersrunning.man - Display a running man, using the walking/standing segments of the displaysleep.ms - Sleep for the specified number of millisecondsSIGNAL
DATA TYPE SIGNAL
The SIGNAL datatype and SIG value allow us to define protocols with SIGNALs more clearly, instead of using BOOL values.
running.man
PROC running.man ()
Display a running man, using the walking/standing segments of the display. Useful for displaying run status of the program, if you are using 16-bit integer printing, it may be preferable to use running.datalog() which appears after the program counter.
running.datalog
PROC running.datalog ()
Display a 'spinning' circle, which completes in quarters. This process can be useful for showing the running state of the program, and is useful when the running man animation obscures 16-bit INT values.
sleep.ms
PROC sleep.ms (VAL INT ms)
Sleep for the specified number of milliseconds.
VAL INT |
ms |
The number of milliseconds to sleep for. |