Using wires and parallel threads

In the following screenshot, you can see that we can have parallel commands in our program. Our primary command will be to rotate the medium motor. You can decide how many turns to rotate your medium motor for. Although in our original program the blocks are connected by touching each other, you can also connect the blocks with wires as you would a real instrument. If you click on the Sequence Plug Exit of a block, a wired space between blocks will open up. You can drag this wire to the next command block, such as the Loop block we will add in a moment.

Using wires and parallel threads

This also allows you to make your code two dimensional. One important ...

Get Learning LEGO MINDSTORMS EV3 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.