gr

Dependencies:   mbed

Revision:
0:25f263c526a9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri May 12 20:25:56 2017 +0000
@@ -0,0 +1,27 @@
+#include "mbed.h"
+
+#include "mbed.h"
+void led_switch(void);
+Ticker time_up;
+DigitalOut myled(D7);
+ 
+void led_switch() {
+    //myled=!myled;     
+    //printf("hello");  
+}
+ 
+int main(){
+    
+    while(1){
+    time_up.attach(&led_switch, 2.0);
+     printf("hello\n");  
+    //while(true) {
+        
+        wait(3);
+    //}
+    }
+    }
+        
+        
+        
+