Honmaka Astro MicroControler sample PluseMotor Sample

Dependencies:   mbed

Committer:
Honmaka
Date:
Sun Jan 04 07:55:14 2015 +0000
Revision:
0:27fe3b05f1fc
Honmaka PlusMotor Sample

Who changed what in which revision?

UserRevisionLine numberNew 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 }