richard tsai / Mbed 2 deprecated Nucleo_pwm

Dependencies:   mbed

Revision:
2:95aadb46a806
Parent:
1:5ed69f730858
diff -r 5ed69f730858 -r 95aadb46a806 main.cpp
--- a/main.cpp	Tue Aug 12 23:46:08 2014 +0000
+++ b/main.cpp	Wed Aug 13 00:13:30 2014 +0000
@@ -16,7 +16,7 @@
     mypwm.period_ms(10);
     mypwm.pulsewidth_ms(1);
     
-    flipper.attach(&flip, 5.0); // the address of the function to be attached (flip) and the interval (2 seconds)
+    flipper.attach(&flip, 4.0); // the address of the function to be attached (flip) and the interval (2 seconds)
   
     printf("pwm set to %.2f %%\n", mypwm.read() * 100);