part1

Dependencies:   mbed

Revision:
6:ab02d7bb40cb
Parent:
5:cb200e69a544
Child:
7:89a6d9004710
diff -r cb200e69a544 -r ab02d7bb40cb main.cpp
--- a/main.cpp	Tue Feb 17 19:23:35 2015 +0000
+++ b/main.cpp	Tue Feb 17 19:58:06 2015 +0000
@@ -55,7 +55,7 @@
                 //Timer used for duration
                 t1.reset();
                 t1.start();
-                PWM1.period(1/freq);               // set PWM period to 10 ms   
+                PWM1.period(1/freq);               // set PWM period to user specified   
                 PWM1=0.5;                         // set duty cycle to 50% 
                 while(t1.read_ms() < dur){
                     //WAIT