PM2_Lib
Dependencies: LSM9DS1 RangeFinder FastPWM
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;