PM2_Lib
Dependencies: LSM9DS1 RangeFinder FastPWM
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. */