April 2018
Beginner to intermediate
258 pages
6h 10m
English
Let's set up the first bits of code. Since Grunt will make use of the EV3 display to show information about the program's status, the first block to add is a reset for the EV3 display. Then, add a loop block, and set it to repeat infinitely. As with all of the other programs we have made so far, all further programming will be placed within the main loop.
We have two more blocks to place. Inside the loop, add a display block that prints No Mode to the EV3 display, which indicates that Grunt is idling. Then, add a block that changes the brick LEDs to green. Grunt will make use of the brick LEDs throughout the program to enhance the interactive experience, as well as indicate the status of the robot:
Read now
Unlock full access