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.
Servo.h@0:e35f0aee6a1f, 2020-06-23 (annotated)
- Committer:
- leonNg
- Date:
- Tue Jun 23 02:47:53 2020 +0000
- Revision:
- 0:e35f0aee6a1f
XP70HV_STM32
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| leonNg | 0:e35f0aee6a1f | 1 | #include "mbed.h" | 
| leonNg | 0:e35f0aee6a1f | 2 | |
| leonNg | 0:e35f0aee6a1f | 3 | class Servo | 
| leonNg | 0:e35f0aee6a1f | 4 | { | 
| leonNg | 0:e35f0aee6a1f | 5 | public: | 
| leonNg | 0:e35f0aee6a1f | 6 | Servo(PinName pin, double period, double pulsewidth); | 
| leonNg | 0:e35f0aee6a1f | 7 | void init(); | 
| leonNg | 0:e35f0aee6a1f | 8 | void servoMove(double); | 
| leonNg | 0:e35f0aee6a1f | 9 | |
| leonNg | 0:e35f0aee6a1f | 10 | private: | 
| leonNg | 0:e35f0aee6a1f | 11 | PwmOut *servo; | 
| leonNg | 0:e35f0aee6a1f | 12 | PinName pin; | 
| leonNg | 0:e35f0aee6a1f | 13 | double period; | 
| leonNg | 0:e35f0aee6a1f | 14 | double pulseWidth; | 
| leonNg | 0:e35f0aee6a1f | 15 | }; |