conclusion

The NXT buttons give you a very convenient way to interact with your program. The buttons work with the program flow blocks just like the other sensors, and they operate much like a Touch Sensor. The PowerSetting program demonstrates how to use the Left and Right buttons to set the value for a variable.

The other programs in this chapter showed you how to use the Display block to do more than just print text. Using this block, you can display images and create drawings on the screen. Your programs can use these features to make your robot much more fun to interact with.

Get The Art of LEGO MINDSTORMS NXT-G Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.