Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The default way to program an NXT brick involves NXT-G, a kid-friendly programming environment that uses Lego-like blocks (Figure 2-14) to organize commands. Say you want to run a motor for ten seconds. You drag and drop a Move block from the palette onto your work area and customize its settings. For instance, you could set the Move block to make the motor spin counter-clockwise with 75% power for 10 rotations. The advantage of this graphical interface is that you can immediately start programming without fiddling with a programming language’s syntax.