S R T Ramasamy / Mbed 2 deprecated Nucleo_blink_led

Dependencies:   mbed

Fork of Nucleo_blink_led by S R V

Files at this revision

API Documentation at this revision

Comitter:
vjwramasamy
Date:
Tue May 05 16:46:52 2015 +0000
Parent:
4:4539efb716ad
Commit message:
PWM working

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue May 05 02:49:04 2015 +0000
+++ b/main.cpp	Tue May 05 16:46:52 2015 +0000
@@ -13,38 +13,38 @@
                 {
                     i=500;
                     mypwm.period_ms(10);
-                    mypwm.pulsewidth_ms(2);
+                    mypwm.pulsewidth_ms(1);
                 }
                     break;
 
                 case 500:
                     i=750;
                     mypwm.period_ms(10);
-                    mypwm.pulsewidth_ms(3);
+                    mypwm.pulsewidth_ms(2);
                     break;
 
                 case 750:
                     i=1000;
                     mypwm.period_ms(10);
-                    mypwm.pulsewidth_ms(4);
+                    mypwm.pulsewidth_ms(3);
                     break;
 
                 case 1000:
                     i=1250;
                     mypwm.period_ms(10);
-                    mypwm.pulsewidth_ms(5);
+                    mypwm.pulsewidth_ms(4);
                     break;
 
                 case 1250:
                     i=1500;
                     mypwm.period_ms(10);
-                    mypwm.pulsewidth_ms(6);
+                    mypwm.pulsewidth_ms(5);
                     break;
 
                 case 1500:
                     i=250;
                     mypwm.period_ms(10);
-                    mypwm.pulsewidth_ms(1);
+                    mypwm.pulsewidth_ms(6);
                     break;
 
                 default: