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: mbed
main.cpp@0:d1fc4eddceab, 2012-10-15 (annotated)
- Committer:
- chris
- Date:
- Mon Oct 15 12:43:06 2012 +0000
- Revision:
- 0:d1fc4eddceab
- Child:
- 1:e5e994163bee
First commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| chris | 0:d1fc4eddceab | 1 | #include "mbed.h" |
| chris | 0:d1fc4eddceab | 2 | #include "Servo.h" |
| chris | 0:d1fc4eddceab | 3 | |
| chris | 0:d1fc4eddceab | 4 | Servo s1(p21); |
| chris | 0:d1fc4eddceab | 5 | Servo s2(p22); |
| chris | 0:d1fc4eddceab | 6 | |
| chris | 0:d1fc4eddceab | 7 | AnalogIn p1(p19); |
| chris | 0:d1fc4eddceab | 8 | AnalogIn p2(p20); |
| chris | 0:d1fc4eddceab | 9 | |
| chris | 0:d1fc4eddceab | 10 | int main() { |
| chris | 0:d1fc4eddceab | 11 | while(1) { |
| chris | 0:d1fc4eddceab | 12 | s1=p1; |
| chris | 0:d1fc4eddceab | 13 | s2=p2; |
| chris | 0:d1fc4eddceab | 14 | wait(0.1); |
| chris | 0:d1fc4eddceab | 15 | } |
| chris | 0:d1fc4eddceab | 16 | } |