Now we’re going to activate one of the LEDs, which we do in the setup()
function.
The text in between the braces (curly brackets) {...} is executed automatically after turning BOB3 on once.
Our setup()
function here contains exactly one statement:
bob3.setLed(EYE_1, WHITE);
This statement turns on BOB3’s first eye EYE_1
in the color white WHITE
.
Compile your program by clicking on compile in the menubar below.
The compiler creates a .bob3 file using your code, which can then be transferred onto BOB3 using the BobDude application.
After compiling, you can find the file next to the ‘compile’ button.
After compiling, you can download the file by clicking on the button part2.bob3. The file will automatically be opened in the BobDude program.
In the BobDude window click on the button “Program!”.
“Help! I can’t get it to work...“