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: LSM9DS1 RangeFinder FastPWM
Dependents: PM2_Example_PES_board PM2_Example_PES_board PM2_Example_PES_board PM2_Example_PES_board ... more
Diff: Servo.cpp
- Revision:
- 22:13db7047054c
- Parent:
- 21:45d903d986f6
- Child:
- 23:1926540ebbec
--- a/Servo.cpp Wed Mar 23 09:30:21 2022 +0000
+++ b/Servo.cpp Wed Mar 23 09:36:59 2022 +0000
@@ -11,6 +11,15 @@
}
/**
+ * Sets the pwm period.
+ * @_Period period in mus.
+ */
+void Servo::SetPeriod(float _Period)
+{
+ Period = _Period;
+}
+
+/**
* Sets the desired angle.
* @_Input a value between 0...1.
*/
