Johan Sebastian / FastPWM

Dependencies:   RGBLed

Dependents:   Widgets

Revision:
33:2ca2e47f9650
Parent:
18:d91c0629e4e6
Child:
34:c0b2265cff9c
diff -r e880dcb178f4 -r 2ca2e47f9650 FastPWM_common.cpp
--- a/FastPWM_common.cpp	Sun Jan 01 14:37:55 2017 +0000
+++ b/FastPWM_common.cpp	Sun Sep 03 16:26:07 2017 +0000
@@ -63,6 +63,7 @@
 
 void FastPWM::write(double duty) {
     _duty=duty;
+    wait_ms(100);
     pulsewidth_ticks(duty*getPeriod());
 }