Difference between revisions of "Exercise - Using Macros"

From Flowcode Help
Jump to navigationJump to search
Line 2: Line 2:
 
It is more efficient to use a macro than to create the code repeatedly every time it is needed.<br />
 
It is more efficient to use a macro than to create the code repeatedly every time it is needed.<br />
 
For more information about macros, see [[What Is a Macro?]].
 
For more information about macros, see [[What Is a Macro?]].
 +
 +
This exercise shows how to use macros with a menu to create a simple LED flasher. The LED can be made to flash at different frequencies by pressing different switches.

Revision as of 10:46, 25 June 2013

Macros are sections of code that are repeated a number of times within a program.
It is more efficient to use a macro than to create the code repeatedly every time it is needed.
For more information about macros, see What Is a Macro?.

This exercise shows how to use macros with a menu to create a simple LED flasher. The LED can be made to flash at different frequencies by pressing different switches.