Hungry mode

Select the switch tab with the top brick button highlighted; it is time to program Hungry mode! In this mode, you can feed the Timmyton LEGO bricks. The color sensor in the mouth will recognize the color of the blocks, and the robot will react differently to each one.

You may notice that the switch block has expanded quite a bit. It will continue to expand as we add more programming. It will still be very large if you open up an empty switch case because it stretches to meet the size of the case with the largest program chunk and remains that size for all of the other cases.

Start by adding the typical blocks, plus a medium motor block (port A, On for Rotations, total of three rotations), placed directly before Mode Loop:

Set ...

Get Building Smart LEGO MINDSTORMS EV3 Robots now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.