1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mark1998
Date:
Tue Oct 02 11:03:26 2018 +0000
Commit message:
i

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 6a90be6bf52d main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Oct 02 11:03:26 2018 +0000
@@ -0,0 +1,48 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+DigitalOut myled2(LED2);
+DigitalOut myled3(LED3);
+DigitalOut myled4(LED4);
+
+int main() 
+{
+    int i;
+    while(1) 
+    {
+       for(i=1;i<=16;i++)
+       {
+/*           if(i==(1||3||5||7||9||11||13||15))
+           {
+           myled4 = 1;
+           }
+           else
+           myled4 = 0;
+           
+           if(i==(1||2||5||6||9||10||13||14))
+           {
+           myled3 = 1;
+           }
+           else
+           myled3 = 0;
+           
+           if(i==(1||2||3||4||9||10||11||12))
+           {
+           myled2 = 1;
+           }
+           else
+           myled2 = 0;
+           */
+           if(i<=8)
+           {
+           myled = 1;
+           }
+           else
+           {
+           myled = 0;
+           }
+           
+           wait(0.0625);
+       }
+    }
+}
diff -r 000000000000 -r 6a90be6bf52d mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Oct 02 11:03:26 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file