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: main.cpp
- Revision:
- 6:a7d481b9d962
- Parent:
- 5:c5ccb1b07e8f
- Child:
- 7:fab080b8be64
diff -r c5ccb1b07e8f -r a7d481b9d962 main.cpp
--- a/main.cpp	Fri Sep 01 22:50:55 2017 +0000
+++ b/main.cpp	Mon Sep 04 03:51:41 2017 +0000
@@ -14,28 +14,12 @@
 HeptaTemp heptatemp(p17);
 HeptaBattery bat(p16,p26);
 
-DigitalOut myled1(LED1);
-DigitalOut myled2(LED1);
-DigitalOut myled3(LED1);
-DigitalOut myled4(LED1);
+DigitalOut myled(LED1);
 
 int main()
 {
-    //Lighting up
-    myled1 = 1;
-    wait(0.5);
-    myled2 = 1;
-    wait(0.5);
-    myled3 = 1;
-    wait(0.5);
-    myled4 = 1;
+    myled = 1;
     wait(0.5);
-    //Lighting off
-    myled1 = 0;
-    wait(0.5);
-    myled2 = 0;
+    myled = 0;
     wait(0.5);
-    myled3 = 0;
-    wait(0.5);
-    myled4 = 0;
 }
\ No newline at end of file