logic__and

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
harseed951
Date:
Thu Jun 11 10:30:08 2015 +0000
Commit message:
dsf

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 Jun 11 10:30:08 2015 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+
+DigitalOut a(LED1);
+DigitalOut b(LED2);
+DigitalOut c(LED3);
+DigitalOut d(LED4);
+int main() {
+    while(1) {
+        int i=1,j=1,q;
+        q=i*j;
+        switch(q)
+        {
+            case 1:
+            a=i;b=j;c=1;
+            break;
+            case 0:
+            a=i;b=j;c=0;
+            break;
+            }
+            }
+            }
+            
+        
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Jun 11 10:30:08 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7
\ No newline at end of file