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.
Fork of PulseMotor2 by
main.cpp@0:27fe3b05f1fc, 2015-01-04 (annotated)
- Committer:
- Honmaka
- Date:
- Sun Jan 04 07:55:14 2015 +0000
- Revision:
- 0:27fe3b05f1fc
- Child:
- 1:c533a17dccc0
Honmaka PlusMotor Sample
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Honmaka | 0:27fe3b05f1fc | 1 | #include "mbed.h" |
| Honmaka | 0:27fe3b05f1fc | 2 | |
| Honmaka | 0:27fe3b05f1fc | 3 | PwmOut PulseMotor(p21); |
| Honmaka | 0:27fe3b05f1fc | 4 | |
| Honmaka | 0:27fe3b05f1fc | 5 | int main() { |
| Honmaka | 0:27fe3b05f1fc | 6 | PulseMotor.period_us(83140); |
| Honmaka | 0:27fe3b05f1fc | 7 | PulseMotor.pulsewidth_us(83140/2); |
| Honmaka | 0:27fe3b05f1fc | 8 | while(1) { |
| Honmaka | 0:27fe3b05f1fc | 9 | } |
| Honmaka | 0:27fe3b05f1fc | 10 | } |
