Controlling InO-Bot’s Lights
InO-Bot has two headlights in front and 8 LED (Light Emitting Diode) lights on top.
Headlights
The headlights may be turned on together or individually. To turn the headlights on, change their property from 0 to 1. The following command turns both headlights on:
PPROP “INOBOT “LIGHTS [1 1]
The following command turns the left headlight on:
PPROP “INOBOT “LIGHTS [1 0]
The following command turns the right headlight on:
PPROP “INOBOT “LIGHTS [0 1]
Try the following to make the headlights blink back and forth:
REPEAT 10 [PPROP “INOBOT “LIGHTS [1 0] PPROP “INOBOT “LIGHTS [0 1]]
It is also possible to control the brightness of the headlights by using a number between 0 and 1. The following command turns the headlights on at half brightness.
PPROP “INOBOT “LIGHTS [0.5 0.5]
LED Lights
The LED lights display in a wide range of colors. They may be turned on together or individually in any color combination providing the opportunity to create fascinating displays. The LED lights are numbered 1 through 8.
The LED command controls the LED lights. LED requires two inputs: a light number or list of numbers and a color. The color may be expressed in any way the Logo understands colors, including color names, RGB lists, or color numbers.
The following command turns LED light # 4 green.
LED 4 “GREEN
The following command turns all 8 LED lights green.
LED [1 2 3 4 5 6 7 8] “GREEN
Set the color to BLACK or 0 to turn the LED lights off.
LED [1 2 3 4 5 6 7 8] 0