diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2013-05-12 22:45:11 +0200 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2013-05-12 22:45:11 +0200 |
commit | a3784c59440fb4e25dd5139dedd31e472df8a9c5 (patch) | |
tree | 54f1999f09fcd88c5eb974d3a134e0b191e4f22c /LUFA/Drivers/Board | |
parent | 983a2ed87a8f6fa88fd8703daa7b3ff0fd1577bf (diff) | |
download | lufa-a3784c59440fb4e25dd5139dedd31e472df8a9c5.tar.gz lufa-a3784c59440fb4e25dd5139dedd31e472df8a9c5.tar.bz2 lufa-a3784c59440fb4e25dd5139dedd31e472df8a9c5.zip |
Update Atmel Studio getting started page and associated images.
Diffstat (limited to 'LUFA/Drivers/Board')
-rw-r--r-- | LUFA/Drivers/Board/LEDs.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/LUFA/Drivers/Board/LEDs.h b/LUFA/Drivers/Board/LEDs.h index dd7fd1181..09c9cc50e 100644 --- a/LUFA/Drivers/Board/LEDs.h +++ b/LUFA/Drivers/Board/LEDs.h @@ -76,7 +76,7 @@ * \code * // Initialize the board LED driver before first use * LEDs_Init(); - * + * * // Turn on each of the four LEDs in turn * LEDs_SetAllLEDs(LEDS_LED1); * Delay_MS(500); @@ -86,11 +86,11 @@ * Delay_MS(500); * LEDs_SetAllLEDs(LEDS_LED4); * Delay_MS(500); - * + * * // Turn on all LEDs * LEDs_SetAllLEDs(LEDS_ALL_LEDS); * Delay_MS(1000); - * + * * // Turn on LED 1, turn off LED 2, leaving LEDs 3 and 4 in their current state * LEDs_ChangeLEDs((LEDS_LED1 | LEDS_LED2), LEDS_LED1); * \endcode @@ -205,6 +205,14 @@ /* Preprocessor Checks: */ #if !defined(__DOXYGEN__) + #if !defined(LEDS_NO_LEDS) + #define LEDS_NO_LEDS 0 + #endif + + #if !defined(LEDS_ALL_LEDS) + #define LEDS_ALL_LEDS (LEDS_LED1 | LEDS_LED2 | LEDS_LED3 | LEDS_LED4) + #endif + #if !defined(LEDS_LED1) #define LEDS_LED1 0 #endif |