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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.