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

the NXT button block

You’ll find the NXT Button block on the Complete Palette with the other sensors, as shown in Figure 12-3. Figure 12-4 shows how the block should appear in your program.

The NXT Button block on the Complete Palette

Figure 12-3. The NXT Button block on the Complete Palette

The NXT Button block

Figure 12-4. The NXT Button block

Use the Configuration Panel (shown in Figure 12-5) to select the button you’re interested in and the action you want to detect (Pressed, Released, or Bumped).

The NXT Button block’s Configuration Panel

Figure 12-5. The ...

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