xt

Dependencies:   mbed

Fork of HelloWorld by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
Abhisheik
Date:
Thu Jun 25 10:14:17 2015 +0000
Parent:
2:1fa29f7e26ff
Commit message:
abhi

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 1fa29f7e26ff -r ea91605072d2 main.cpp
--- a/main.cpp	Thu Jun 25 09:42:23 2015 +0000
+++ b/main.cpp	Thu Jun 25 10:14:17 2015 +0000
@@ -8,52 +8,52 @@
  {
   for(a=0;a<2;a++)
   {
-   x=a;
    for(b=0;b<2;b++)
    {
+    x=a;
     y=b;
     z=1;
-    wait(1);
+    wait(0.25);
     z=0;
     if(a&&b==1)
     {
      e=1;
        wait(1);
-    e=0;
      }
      else
      {
       e=0;
+      wait(1);
      }
-     if(a&&!b==1)
+     if(a&&b==1)
      {
-         e=1;
+         e=0;
            wait(1);
-    e=0;
       }
       else
       {
-        e=0;
+        e=1;
+        wait(1);
       }
       if(a||b==1)
       {
           e=1;
             wait(1);
-    e=0;
        }
        else
        {
           e=0;
+          wait(1);
         }
         if(a==!b)
         {
            e=1;
              wait(1);
-    e=0;
          }
          else
          {
            e=0;
+           wait(1);
          }
        }
        }