Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Leds/LEDs.cpp
- Revision:
- 11:7b12992156de
- Parent:
- 10:29126a41b1da
- Child:
- 15:944ef5ed4533
diff -r 29126a41b1da -r 7b12992156de Leds/LEDs.cpp
--- a/Leds/LEDs.cpp Wed Mar 25 15:36:01 2020 +0000
+++ b/Leds/LEDs.cpp Sat Mar 28 10:31:41 2020 +0000
@@ -26,6 +26,7 @@
{
if(leds_on == true) { //If the LED setting is on
if(state == 2) {
+ //Sets both sets of LEDs to Red
Device.led(1,1);
Device.led(2,0);
Device.led(3,0);
@@ -33,6 +34,7 @@
Device.led(5,0);
Device.led(6,0);
} else if(state == 1) {
+ //Sets both sets of LEDs to Orange
Device.led(1,0);
Device.led(2,1);
Device.led(3,0);
@@ -40,6 +42,7 @@
Device.led(5,1);
Device.led(6,0);
} else if(state == 0) {
+ //Sets both sets of LEDs to Green
Device.led(1,0);
Device.led(2,0);
Device.led(3,1);