the first

Files at this revision

API Documentation at this revision

Comitter:
icchong
Date:
Sun Sep 16 08:18:10 2018 +0000
Parent:
0:37df34174027
Commit message:
the first

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Sep 16 08:08:07 2018 +0000
+++ b/main.cpp	Sun Sep 16 08:18:10 2018 +0000
@@ -4,6 +4,8 @@
 
 int main(int argc, char* argv[])
 {
-    myLed.write(1);
-    return 0;
+    while (true) {
+        myLed = !myLed;
+        wait(0.5);
+    }
 }
\ No newline at end of file