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 12. the NXT buttons and the display block

The NXT has three buttons and a small display screen that you can use to interact with your programs, similar to the way you use a keyboard and monitor with most computers. In this chapter, you’ll learn how your programs can use the buttons on the NXT. You’ll also learn about some new features of the Display block that will give you more control over the NXT’s screen.

The chapter begins with two small programs that show you how to use the buttons to adjust the value of a variable. The first program displays the value using text, as you’ve done in previous programs. The second program shows you how to display the same information using images. The chapter then shows a final program, which uses a ...

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