Exercise - Using Macros: Difference between revisions
Appearance
JohnVerrill (talk | contribs) No edit summary |
JohnVerrill (talk | contribs) No edit summary |
||
| 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.