Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
 - 2:697cd0c40fbf
 - Parent:
 - 1:5d12e995c311
 
--- 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;
             }
         }
     }