Anderson Cunha / Mbed OS example_smart-grid

Dependencies:   sgam-lib

Files at this revision

API Documentation at this revision

Comitter:
AndersonIctus (anderson.ictus@gmail.com)
Date:
Mon May 20 20:23:27 2019 -0300
Parent:
1:794a88b39544
Child:
3:a02fcd753ae3
Commit message:
comitando inicio

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun May 19 18:15:41 2019 +0000
+++ b/main.cpp	Mon May 20 20:23:27 2019 -0300
@@ -1,5 +1,16 @@
 #include "mbed.h"
 
+DigitalOut led1 (LED1);
+
 int main () {
+    int count = 0;
+    while(count ++ < 10){
+        led1 = 1;
+        wait(0.4);
+        led1 = 0;
+        wait(0.2);
+    }
+
+    led1 = 0;
     return 1;
 }