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.
Dependents: Nucleo_Une_Mesure Nucleo_LIDAR_PRJ_2018-19
Revision 2:cb7cc6f299eb, committed 2019-02-20
- Comitter:
- Nilox
- Date:
- Wed Feb 20 20:44:54 2019 +0000
- Parent:
- 1:6d68eb9b6bbb
- Commit message:
Changed in this revision
PwmIn.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/PwmIn.cpp Thu Sep 02 18:17:35 2010 +0000 +++ b/PwmIn.cpp Wed Feb 20 20:44:54 2019 +0000 @@ -43,10 +43,10 @@ } void PwmIn::rise() { - _period = _t.read(); + _period = _t.read_us(); _t.reset(); } void PwmIn::fall() { - _pulsewidth = _t.read(); + _pulsewidth = _t.read_us(); }