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

the keep alive block

The NXT has a built-in sleep setting that turns it off when it’s not in use. By default the sleep time is set to either 10 minutes or an hour, depending on the version of the firmware on your NXT. You can use the NXT’s Settings menu to set the sleep time or turn off this feature.

Having the NXT go to sleep is useful for saving your batteries; however, you may want to prevent the NXT from turning off while your program is running. That’s where the Keep Alive block comes in.

The Keep Alive block is in the Advanced group at the bottom of the Complete Palette (shown in Figure 6-14). The icon for this block may not be immediately obvious. It’s a pair of Zs (to indicate sleeping) crossed out using a red circle with a line through ...

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