using the DisplayNumber block

Now that you’ve created the DisplayNumber block, let’s put it to use. Follow these steps to use the DisplayNumber block in the PowerSetting program, replacing the Number to Text, Text, and Display blocks:

  1. Open the PowerSetting program.

  2. Delete the Number to Text, Text, and Display blocks highlighted here:

    image with no caption
  3. Add a DisplayNumber block (from the Complete Palette) after the Variable block.

    image with no caption
  4. In the DisplayNumber block’s Configuration Panel, set the Line item to 5 and the Label item to Power: (with a space after the colon).

  5. Check the ...

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.