Skip to Main Content
The Art of LEGO MINDSTORMS NXT-G Programming
book

The Art of LEGO MINDSTORMS NXT-G Programming

by Terry Griffin
August 2010
Intermediate to advanced content levelIntermediate to advanced
288 pages
13h 21m
English
No Starch Press
Content preview from The Art of LEGO MINDSTORMS NXT-G Programming

conclusion

Creating your own blocks is a simple yet powerful way to reuse code, making your programs easier to understand and less prone to error. The three My Blocks presented in this chapter show how to create My Blocks with varying degrees of complexity. Simple blocks such as the Chime block allow you to easily reuse code and help keep programs to a manageable size. Complex blocks with many configuration options such as the DisplayNumber block can help reduce the problems associated with rewriting the same complicated code several times.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

Terry Griffin

Publisher Resources

ISBN: 9781593272180Errata