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

changing the name of a configuration item

The item in the ProgTimer1’s Configuration Panel, as well as the data plug, is named Value. This isn’t bad, but it could be more descriptive. The name used for a configuration item comes from a comment that appears just above the data plug for the item in the code for the My Block. To change the name, change the comment. For example, to change the name of the ProgTimer1’s configuration item from Value to Delay in milliseconds, you would do this:

  1. Open the Timer1 program if it isn’t already open.

  2. Double-click the ProgTimer1 block to open the code for the block:

    image with no caption

The comment for the data plug is obscured by the ...

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