Chapter 8. data wires

In this chapter, you’ll learn how to use data wires to pass information from one block to another. Using data wires, you can change a block’s settings while a program is running (by using data from a new sensor reading, for example). Data wires are one of the most powerful EV3 programming features, and learning how to use them will open up many more possibilities for your programs.

I’ll begin with a simple example to show you what a data wire is and how it works. We’ll then spend the rest of the chapter developing a more complex program that turns the TriBot into a sound generator. Along the way, I’ll cover all the basic concepts you need to successfully use data wires in your own programs. I’ll also introduce some new blocks ...

Get The Art of LEGO MINDSTORMS EV3 Programming (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.