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.h
- Revision:
- 20:ea222b81350e
- Parent:
- 18:21c0a669d6ef
- Child:
- 21:45d903d986f6
--- a/Servo.h Tue Mar 22 08:35:07 2022 +0000
+++ b/Servo.h Tue Mar 22 09:43:13 2022 +0000
@@ -34,6 +34,7 @@
void SetPosition(float _Input);
void Enable(float _StartInput, int _Period);
void Disable();
+ bool isEnabled();
private:
@@ -43,6 +44,7 @@
void StartPulse();
void EndPulse();
+ bool servoEnabled;
int Position, Period;
DigitalOut ServoPin;
Ticker Pulse;
