Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Home
http://developer.mbed.org/handbook/PwmOut
void period_ms (int ms) Set the PWM period, specified in milli-seconds (int), keeping the duty cycle the same. void period_us (int us) Set the PWM period, specified in micro-seconds (int), keeping the duty cycle the same.
Due to period_ms (int ms) being a int the comma values(floats) dit not work and delivered incorrect results. Changed to us, and value *1000 fixed the problem.
eg 1.5ms -> period_us(1500) ;)
Working verified with oscilloscope.