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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 2:889d77deda82
- Parent:
- 1:f8bee01e9ab4
- Child:
- 3:019d8ca5aac4
--- a/main.cpp	Tue Mar 01 15:22:20 2016 +0000
+++ b/main.cpp	Fri Mar 04 09:51:25 2016 +0000
@@ -16,7 +16,11 @@
 }
 
 void timer_set(){
-    timeDelay.attach(&timer_Init , 4.0);
+    timeDelay.attach(&timer_Init , 1.0);
+    myled = 1;
+    //wait(0.1);
+    //myled = !myled;
+    count = 0;
 }
 
 int main() {
@@ -25,8 +29,8 @@
     
     while(1) {
         if(count == 1000){
-            myled = HIGH;
-            wait(0.1);
+            //myled = HIGH;
+           // wait(0.1);
             myled = !myled;
             count = 0;
         }