the DisplayNumber block

In this section, you’ll build a My Block for displaying numbers on the NXT’s screen. Several of the programs presented so far have used the Number to Text, Text, and Display blocks to display a labeled value. For example, Figure 13-15 shows the section of the PowerSetting program from Chapter 12 that displays the current value of the Power variable. In this section, you’ll create the DisplayNumber block from the Number to Text, Text, and Display blocks, which will make displaying numbers much more convenient.

The Number to Text, Text, and Display blocks used to display a number

Figure 13-15. The Number to Text, Text, and Display blocks used to display a number

configuration items

Before creating ...

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.