Hiroaki Asai / Mbed 2 deprecated mbed_blinky_IoT_sample_SOS

Dependencies:   mbed

Fork of mbed_blinky_IoT_sample by Hiroaki Asai

Files at this revision

API Documentation at this revision

Comitter:
integra
Date:
Sat Nov 14 05:25:10 2015 +0000
Parent:
0:e2da3693e9b2
Commit message:
Simple IoT Borad LED blink S.O.S

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Nov 14 05:12:56 2015 +0000
+++ b/main.cpp	Sat Nov 14 05:25:10 2015 +0000
@@ -4,14 +4,64 @@
 
 int main() {
     while(1) {
+        // .
         myled = 1;
-        wait(0.4);
+        wait(0.1);
         myled = 0;
         wait(0.1);
+
+        // .
+        myled = 1;
+        wait(0.1);
+        myled = 0;
+        wait(0.1);
+
+        // .
         myled = 1;
         wait(0.1);
         myled = 0;
-        wait(0.2);
+        wait(0.1);
+
+        wait(0.1);
+
+        // -
+        myled = 1;
+        wait(0.3);
+        myled = 0;
+        wait(0.3);
+
+        // -
+        myled = 1;
+        wait(0.3);
+        myled = 0;
+        wait(0.3);
+
+        // -
+        myled = 1;
+        wait(0.3);
+        myled = 0;
+        wait(0.3);
 
+        wait(0.1);
+
+        // .
+        myled = 1;
+        wait(0.1);
+        myled = 0;
+        wait(0.1);
+
+        // .
+        myled = 1;
+        wait(0.1);
+        myled = 0;
+        wait(0.1);
+
+        // .
+        myled = 1;
+        wait(0.1);
+        myled = 0;
+        wait(0.1);
+
+        wait(0.9);
     }
 }