hello test

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Compass_Yap
Date:
Thu Sep 21 05:41:09 2017 +0000
Parent:
0:4651d2bc2edf
Commit message:
Test_revison

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Sep 21 05:34:49 2017 +0000
+++ b/main.cpp	Thu Sep 21 05:41:09 2017 +0000
@@ -1,12 +1,15 @@
 #include "mbed.h"
 
 DigitalOut myled(LED1);
+DigitalOut myled2(LED2);
 
 int main() {
     while(1) {
         myled = 1;
-        wait(0.2);
+        myled = 0;
+        wait(0.5);
         myled = 0;
-        wait(0.2);
+        myled2 = 1;
+        wait(0.5);
     }
 }