conclusion

Data wires move information between blocks, allowing you to change a block’s settings while your program is running. The programs presented in this chapter have shown you some simple ways to use data wires and introduced some of the blocks that are designed to work with data wires. The Sensor blocks use data wires to make sensor readings available to other blocks in your program. The Math, Number to Text, and Text blocks are used almost exclusively with data wires to transform data or convert between data types.

The next two chapters will show you how to use data wires with the Switch and Loop blocks. You’ll get lots of practice using data wires because you’ll use them extensively for the programs in the remainder of this book.

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