for percussion1

Dependencies:   mbed

Fork of penkich_test_percussion by kitac_mbed_WS

Revision:
2:269fadd5d1f2
Parent:
1:3252e4fbccab
Child:
3:396b2628e3d7
--- a/main.cpp	Sun Aug 23 00:52:12 2015 +0000
+++ b/main.cpp	Sun Aug 23 10:27:57 2015 +0000
@@ -1,6 +1,7 @@
 #include "mbed.h"
 
 DigitalIn sw(D7);
+
 Ticker timer;
 PwmOut speaker(D5);
 Ticker envelope;
@@ -38,6 +39,7 @@
      
 int main()
 {
+    sw.mode(PullUp);
     while(1){
         if (sw ==0){
             tms_per10=0;