advanced my block topics
After creating the Chime, ProgTimer1, and DisplayNumber blocks, you should understand how My Blocks work and be able to create blocks for your own programs. The examples presented here are typical of the kinds of blocks you’ll want to create for yourself. However, before ending this chapter, I’ll cover a few more aspects of My Blocks that you should be familiar with. The following sections deal with using variables with My Blocks, nesting My Blocks, dealing with broken My Blocks, and adding data plugs to a My Block.
variables and my blocks
You can use variables in your My Blocks just as you do in the main program. The important thing to know is that a program and all the My Blocks it includes share the same list of variables. ...
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.