Skip to Main Content
The Art of LEGO MINDSTORMS NXT-G Programming
book

The Art of LEGO MINDSTORMS NXT-G Programming

by Terry Griffin
August 2010
Intermediate to advanced content levelIntermediate to advanced
288 pages
13h 21m
English
No Starch Press
Content preview from The Art of LEGO MINDSTORMS NXT-G Programming

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’ll be able to change a block’s settings while a program is running, and you’ll be able to modify a sensor’s value before it’s used by another block. Data wires are one of the most powerful features of the NXT-G language, and learning how to use them will greatly enhance your skill as a programmer.

I’ll begin with a simple example to show you what a data wire is and how it works. Most of the remainder of the chapter is devoted to developing a fairly complex program that turns the TriBot into a sound generator. Along the way, I’ll cover all the basic concepts you need in order to successfully use data wires ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

Terry Griffin

Publisher Resources

ISBN: 9781593272180Errata