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 timer block

Timers are used like the other sensors and can be selected from the sensor list of the Wait, Switch, and Loop blocks. You can also control a timer using the Timer block, which appears in the sensor group on the Complete Palette (as shown in Figure 10-11). In your program, the Timer block will appear as shown in Figure 10-12.

The Timer block on the Complete Palette

Figure 10-11. The Timer block on the Complete Palette

The Timer block

Figure 10-12. The Timer block

The Timer block’s Configuration Panel (shown in Figure 10-13) allows you to either reset a timer to 0 or read the current timer value, ...

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