Chapter    3

Working with My Blocks

The NXT-G software comes with a large variety of useful blocks to help you build your programs, but it also includes the ability for you to create your own custom blocks, called “My Blocks.” My Blocks contain collections of NXT-G software blocks that create subprograms or functions that you can reuse within other NXT-G software programs. The Common and Complete palettes contain the predefined NXT-G software blocks; the Custom palette is where My Blocks are accessed. In Figure 3-1, the blue block is the My Block that is included in the sequence.


Figure 3-1.  My Blocks are easy to spot in a sequence—they are ...

Get Winning LEGO MINDSTORMS Programming now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.