configuring a my block

The Chime block is a little unusual in that it doesn’t have any configuration settings; it always does the same thing. Most NXT-G blocks need some information to perform their function, and this will be true of most of the My Blocks you create.

For example, let’s say you wanted to create a My Block from the Timer1 program from Chapter 11, shown in Figure 13-12. Recall that this is a programmable timer, meaning you can use a data wire to set the amount of time to wait. A My Block created from this program will be useful only if you can configure the length of the delay (otherwise it wouldn’t be programmable).

The Timer1 program

Figure 13-12. 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.