O'Reilly logo

The LEGO MINDSTORMS EV3 Discovery Book (Full Color) by Laurens Valk

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required