![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Honmaka Astro MicroControler sample PluseMotor Sample Ver 2
Fork of PulseMotor 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 | } |