EmbeddedArtists AB / Mbed 2 deprecated lpc812_exp_solution_digital-in

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
embeddedartists
Date:
Fri Nov 22 09:06:59 2013 +0000
Parent:
1:5d12e995c311
Commit message:
Small fixes

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Nov 22 09:01:33 2013 +0000
+++ b/main.cpp	Fri Nov 22 09:06:59 2013 +0000
@@ -39,21 +39,21 @@
             if (state2 == 0) {
                 // Both pressed so turn off LED/buzzer
                 led = 1;
-                buzzer = 0;
+                buzzer = 1;
             } else {
                 // Only one pressed so turn on LED/buzzer
                 led = 0;
-                buzzer = 1;
+                buzzer = 0;
             }
         } else {
             if (state2 == 0) {
                 // Only one pressed so turn on LED/buzzer
                 led = 0;
-                buzzer = 1;
+                buzzer = 0;
             } else {
                 // Both pressed so turn off LED/buzzer
                 led = 1;
-                buzzer = 0;
+                buzzer = 1;
             }
         }
     }