test

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Aganyte
Date:
Wed Nov 13 15:00:35 2019 +0000
Commit message:
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 000000000000 -r 85f4c1d7a785 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Nov 13 15:00:35 2019 +0000
@@ -0,0 +1,34 @@
+#include "mbed.h"
+
+DigitalOut myled(PA_5);
+DigitalOut myled1(PA_6);
+DigitalOut myled2(PA_7);
+DigitalOut myled3(PA_8);
+
+int main() {
+    while(1) {
+        myled = 1;
+        myled1 = 0;
+        myled2 = 0;
+        myled3 = 0;
+        wait(0.2);
+        
+        myled = 0;
+        myled1 = 1;
+        myled2 = 0;
+        myled3 = 0;
+        wait(0.2);
+
+        myled = 0;
+        myled1 = 0;
+        myled2 = 1;
+        myled3 = 0;
+        wait(0.2);
+        
+        myled = 0;
+        myled1 = 0;
+        myled2 = 0;
+        myled3 = 1;
+        wait(0.2);
+    }
+}
diff -r 000000000000 -r 85f4c1d7a785 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Nov 13 15:00:35 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file