Saving code as a MyBlock

The chunk of code we made is the first of the four intelligent MyBlocks that make the Falcon's programming smart. Now that we have the code written out, follow these steps to save it as a MyBlock:

  1. Click and drag your cursor to select all of the code that you wish to include in the MyBlock. The code that is successfully selected will be highlighted in blue. Do not include the Start block in your selection.
  2. In the top-right corner of the screen, navigate to Tools | My Block Builder.
  3. Using the My Block Builder wizard, set up your new MyBlock by naming it and selecting an icon. There are many icons to choose from, so choose an icon that represents what your new MyBlock does.
  4. When you are satisfied, click Finish in the ...

Get Building Smart LEGO MINDSTORMS EV3 Robots 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.