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:
Open the PowerSetting program.
Delete the Number to Text, Text, and Display blocks highlighted here:
Add a DisplayNumber block (from the Complete Palette) after the Variable block.
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).
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.