Honmaka Astro MicroControler sample Heater Contoler Sample Ver 1
Fork of PulseMotor3 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 | } |