C Control PRO-BOT128 + C-Control PRO 128 Unit + Voltcraft® USB programming cable Kit 190406 User Manual

Product codes
190406
Page of 56
44
FLR_ON()
Switches the front right LED on.
FLR_OFF()
Switches the front right LED off.
BLL_ON()
Switches the back left LED on.
BLL_OFF()
Switches the back left LED off.
BLR_ON()
Switches the back right LED on.
BLR_OFF()
Switches the back right LED off.
ENC_RIGHT()
Interrupt routine for the right wheel encoder. The variable "ODO_RIGHT" is incremented by 1 each.
ENC_LEFT()
Interrupt routine for the left wheel encoder. The variable "ODO_LEFT" is incremented by 1 each.
ODO_RESET()
Resets the wheel encoder to 0.
ENC_LED_ON()
Switches on the wheel encoder IR diodes. You have to call up this routine every time you need it. To save power, you can turn it off again with
ENC_LED_OFF().
ENC_LED_OFF()
Switches the wheel encoder IR diodes off, see ENC_LED_ON().
BEEP (tone as word, period as word)
Beep output, beeps were defined in the library above.
Example: BEEP (250,150)
SOUND_LEVEL() as word
Returns the analog value of the sound sensor (0 to 1023).
LDR_LEFT() as word
Returns the analog value of the left light sensor (LDR) (0 to 1023).
LDR_RIGHT() as word
Returns the analog value of the right light sensor (LDR) (0 to 1023).
READ_LINE_LEFT() as word
Returns the analog value of the left line sensor (0 to 1023).