workshop testing

Dependencies:   mbed

Fork of mbed_blinky by Mbed

Files at this revision

API Documentation at this revision

Comitter:
hovig
Date:
Wed Jan 14 02:12:46 2015 +0000
Parent:
6:e8cd76f38fa9
Commit message:
workshop test

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r e8cd76f38fa9 -r 3ea491238112 main.cpp
--- a/main.cpp	Fri May 09 19:58:03 2014 +0300
+++ b/main.cpp	Wed Jan 14 02:12:46 2015 +0000
@@ -1,12 +1,24 @@
 #include "mbed.h"
 
-DigitalOut myled(LED1);
+DigitalOut myled1(LED1);
+DigitalOut myled2(LED2);
+DigitalOut myled3(LED3);
 
 int main() {
     while(1) {
-        myled = 1;
-        wait(0.2);
-        myled = 0;
-        wait(0.2);
+        myled2 = 7;     //turn myled on
+        printf("LED OFF! \n\r");
+        wait(0.8);
+        myled1 = 7;
+        wait(0.8);
+        myled3 = 7;
+        wait(0.8);
+        myled1 = 0;
+        wait(0.8);
+        myled2 = 0;     //turn myled off
+        printf("LED ON! \n\r");
+        wait(0.8);
+        myled3 = 0;
+        wait(0.8);
     }
 }
diff -r e8cd76f38fa9 -r 3ea491238112 mbed.bld
--- a/mbed.bld	Fri May 09 19:58:03 2014 +0300
+++ b/mbed.bld	Wed Jan 14 02:12:46 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5
\ No newline at end of file