Chapter 5. waiting, repeating, my blocks, and multitasking

The previous chapter taught you how to program your robot to perform a variety of actions, such as moving. In this chapter, you’ll learn several programming techniques that give you more control over the order and flow of the blocks in your EV3 programs. You’ll learn how to pause a program with Wait blocks, how to repeat a set of actions with Loop blocks, how to run multiple blocks simultaneously, and even how to make your own custom My Blocks.

the wait block

So far you’ve been using programming blocks that make the robot move, play sounds, or display something on the screen. Now you’ll meet a block that does nothing more than pause the program for a set amount of time. This block, the ...

Get The LEGO MINDSTORMS EV3 Discovery Book (Full Color) 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.