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.
main.cpp@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 | |
| leonNg | 0:e35f0aee6a1f | 2 | #include "mbed.h" | 
| leonNg | 0:e35f0aee6a1f | 3 | #include "Servo.h" | 
| leonNg | 0:e35f0aee6a1f | 4 | |
| leonNg | 0:e35f0aee6a1f | 5 | Servo servo(PB_3, 0.0025, 0); | 
| leonNg | 0:e35f0aee6a1f | 6 | //PWM output pin, Period(s), Plusewidth(s) | 
| leonNg | 0:e35f0aee6a1f | 7 | |
| leonNg | 0:e35f0aee6a1f | 8 | int main(){ | 
| leonNg | 0:e35f0aee6a1f | 9 | while(1){ | 
| leonNg | 0:e35f0aee6a1f | 10 | servo.servoMove(500); | 
| leonNg | 0:e35f0aee6a1f | 11 | //Plusewidth(s) | 
| leonNg | 0:e35f0aee6a1f | 12 | } | 
| leonNg | 0:e35f0aee6a1f | 13 | } | 
| leonNg | 0:e35f0aee6a1f | 14 | |
| leonNg | 0:e35f0aee6a1f | 15 |