Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Wizo
Date:
Thu Nov 15 18:00:23 2018 +0000
Commit message:
Leds1

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Nov 15 18:00:23 2018 +0000
@@ -0,0 +1,37 @@
+#include "mbed.h"
+
+DigitalOut d20(P1_13);
+DigitalOut d19(P1_12);
+DigitalOut d18(P1_7);
+DigitalOut d17(P1_6);
+
+void SimpleRunLight();
+
+
+int main() {
+    
+    SimpleRunLight ();
+    
+}
+
+void SimpleRunLight ()
+{
+    d20 = 0; d19 = 0; d18 = 0; d17 = 0;
+     while (1)
+     {
+         d20 = 1; wait_ms(100);
+         d20 = 0; wait_ms(100);
+         
+         d19 = 1; wait_ms(100);
+         d19 = 0; wait_ms(100);
+         
+         d18 = 1; wait_ms(100);
+         d18 = 0; wait_ms(100);
+         
+         d17 = 1; wait_ms(100);
+         d17 = 0; wait_ms(100);
+         
+         }
+    
+    
+    }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Nov 15 18:00:23 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e7ca05fa8600
\ No newline at end of file