So far, Milo did our program once. Real robots have to keep working without someone to push a button every time. In fact, real factory robots usually do work that is repetitive and would bore a person.
We can tell Milo to do things over and over again. Make a program like this.
This tells Milo
1) Turn on the blue light.
2) Wait 1 second.
3) Turn on the red light.
4) Wait 1 second
5) The yellow umbrella thing says to do it all over again! The blue block under it tells to repeat the whole loop only 3 times.
Play around with the program. Add blocks. Change colors. Change the number settings.
Here's what this program would look like in computer code. You don't have to understand all of it, but you'll probably see it mostly makes sense!
DO UNTIL COUNT = 3:
LIGHT(STATUS=ON, COLOR=BLUE)
WAIT(SECONDS=1)
LIGHT(STATUS=ON, COLOR=RED)
WAIT(SECONDS=1)
COUNT = COUNT + 1
Change and add blocks so Milo moves, shows lights, and plays music (red block with music notes on it)!
It's a robot dance party! Join in if you feel like dancing!