diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-24 01:44:01 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-24 01:44:01 +0000 |
commit | 200821fe827230570e253c1679f00bcdb6c5bd94 (patch) | |
tree | 0aed41075af0b12258d1dee1c3946e61e9e4d0e0 /Demos/Host/LowLevel | |
parent | 3991c94b3858bbb02ca9ea6497cf60c84635b99a (diff) | |
download | lufa-200821fe827230570e253c1679f00bcdb6c5bd94.tar.gz lufa-200821fe827230570e253c1679f00bcdb6c5bd94.tar.bz2 lufa-200821fe827230570e253c1679f00bcdb6c5bd94.zip |
Added new LEDs_ToggleLEDs() function to the Board LEDs driver.
Diffstat (limited to 'Demos/Host/LowLevel')
-rw-r--r-- | Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c | 5 | ||||
-rw-r--r-- | Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c b/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c index 273cd7175..1a53526ba 100644 --- a/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c +++ b/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c @@ -156,10 +156,7 @@ void ReadNextReport(void) if (KeyboardReport.KeyCode)
{
/* Toggle status LED to indicate keypress */
- if (LEDs_GetLEDs() & LEDS_LED2)
- LEDs_TurnOffLEDs(LEDS_LED2);
- else
- LEDs_TurnOnLEDs(LEDS_LED2);
+ LEDs_ToggleLEDs(LEDS_LED2);
char PressedKey = 0;
diff --git a/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c b/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c index eee1755bf..2cc08a13d 100644 --- a/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c +++ b/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c @@ -250,10 +250,7 @@ void ProcessKeyboardReport(uint8_t* KeyboardReport) if (KeyCode)
{
/* Toggle status LED to indicate keypress */
- if (LEDs_GetLEDs() & LEDS_LED2)
- LEDs_TurnOffLEDs(LEDS_LED2);
- else
- LEDs_TurnOnLEDs(LEDS_LED2);
+ LEDs_ToggleLEDs(LEDS_LED2);
char PressedKey = 0;
|