8. Advanced Programming

In this chapter, we learn a bit more about Mindstorms programming and how it works. First and foremost, we explore data wires, NXT-G’s on-screen representation of the flow of data (see Figure 8.1). When one programming block needs to send information to another block, it uses data wires.


Figure 8.1. Look complicated? Let’s learn more about programming.

Wires are the key to turning an otherwise blah program into a sophisticated and responsive one that can pull in data from its sensors and use that data to adjust the behaviors of various blocks. Learning about wires is one of the keys to advanced programming!

Tip: There’s ...

Get Basic Robot Building With LEGO Mindstorms NXT 2.0 now with O’Reilly online learning.

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