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.

9781430245360_Fig03-01.jpg

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 books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.