In this example we're going to get to know the following method better:
Up until now, we've used the method, for example, to turn eye 1 on in white:
Now, we will take a closer look!
In the blue sidebar on the left you can find all the different methods available to your BOB3.
If you hover over a method with your cursor, a popup will show you information about the method.
Try it out with the method
has two parameters: id and color
In place of the id you can use one of the four constants
or the LEDs number,
For color you can use a color constant, e.g.
WHITE or a hexadecimal color value, e.g.
Compile the program and test it on your BOB3.
What does the programme do?
Add the following line:
Recompile the program and test it on your BOB3.
Add another line of code to make the second tummy LED light up white!
Compile your new program and test it on your BOB3.