In this example both eye should flash in four different hues of blue.
To do this we need our method
bob3.setEyes(color1, color2);
and several delay()
statements.
Compile the example and test it on your BOB3.
If everything has worked correctly then both eyes should be flashing in different hues of blue.
Change the source code so that the following happens:
Eye 1 should continue to flash in four different hues of blues.
Eye 2 should, however, flash in four different hues of red.
Compile your program and test it on your BOB3.
Now change the code so that the following happens:
Eye 1 should flash like before in 4 different blues.
Eye 2 should flash like before in 4 different reds.
Then:
- there should be a short pause
- both eyes should lit up for 2 seconds (2000 milliseconds) in glaring green
- both eyes should be switched off
- there should be a short pause
The sequence then restarts automatically!
Compile your program and test it on your BOB3.