pwm para etapa de potencia

Dependencies:   TextLCD mbed

Fork of TutoElectro_PWM by Alejandro M

Files at this revision

API Documentation at this revision

Comitter:
josedaparte
Date:
Mon Dec 07 19:30:24 2015 +0000
Parent:
2:be4ea24f1cdd
Commit message:
j

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r be4ea24f1cdd -r 7de9f8f4a15e main.cpp
--- a/main.cpp	Fri Dec 04 16:30:11 2015 +0000
+++ b/main.cpp	Mon Dec 07 19:30:24 2015 +0000
@@ -36,7 +36,7 @@
             }    
         
     pc.baud(115200);
-    pwmsal.period_ms(5);
+    pwmsal.period(5);
     valorpwm = pwment.read();
     pwmsal.write(valorpwm);
     wait(1);