dd

Dependencies:   mbed

Fork of keerthi by keerthi vasan

Files at this revision

API Documentation at this revision

Comitter:
Abhisheik
Date:
Thu Jul 16 10:48:41 2015 +0000
Parent:
2:f222a223fdb3
Commit message:
dd

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Jun 25 10:06:56 2015 +0000
+++ b/main.cpp	Thu Jul 16 10:48:41 2015 +0000
@@ -1,64 +1,14 @@
 #include "mbed.h"
 
-DigitalOut a(LED1);
-DigitalOut b(LED2);
-DigitalOut c(LED3);
-DigitalOut p(p9);
-
-int main() 
+BusOut a(p8,p12,p11,p5,p6,p7,p9,p10);
+int main()
 {
-    int i,j;
-    for(i=0;i<2;i++)
-    {
-    for(j=0;j<2;j++)
-    {
-     a=i;b=j;
-     c=1;
-     wait(0.25);
-      c=0;
-      
-      if(i*j==1)
-      {
-          p=1;
-        wait(1);
-        }
-        else
-        {
-           p=0;
-         wait(1);
-        }
-        {
-         if(i*j==0)
-         {
-          p=1;
-        wait(1);
-        }
-        else
-        {
-           p=0;
-         wait(1);
-        }
-         if(i+j==1)
-         {
-             p=1;
-             wait(1);
-         }
-          else
-        {
-           p=0;
-         wait(1);
-        }
-         if(i==!j)
-         {
-             p=1;
-             wait(1);
-             }
-        else
-        {
-           p=0;
-         wait(1);
-        }
-             wait(2);}
-             }
-             }
-                 }       
\ No newline at end of file
+ a=0x10;
+ a=0x1F;
+ a=0x44;
+ a=0x06;
+ a=0x0B;
+ a=0x82;
+ a=0x80;
+ a=0x17;
+ }        
\ No newline at end of file