Terrabots / Mbed 2 deprecated Motor

Dependencies:   mbed

Dependents:   DumpTruck turn_pot

Committer:
simplyellow
Date:
Tue Sep 20 19:35:30 2016 +0000
Revision:
0:a8839a6b9e39
Child:
2:33be70fd7c4b
Motor library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
simplyellow 0:a8839a6b9e39 1 #include "mbed.h"
simplyellow 0:a8839a6b9e39 2 #include "Motor.h"
simplyellow 0:a8839a6b9e39 3
simplyellow 0:a8839a6b9e39 4 Serial pc(USBTX, USBRX);
simplyellow 0:a8839a6b9e39 5
simplyellow 0:a8839a6b9e39 6 Motor m1(p24,p30);
simplyellow 0:a8839a6b9e39 7 //Motor m2(p23,p28);
simplyellow 0:a8839a6b9e39 8 //Motor m3(p23,p28);
simplyellow 0:a8839a6b9e39 9 //Motor m4(p23,p28);
simplyellow 0:a8839a6b9e39 10
simplyellow 0:a8839a6b9e39 11 int main() {
simplyellow 0:a8839a6b9e39 12 m1.write(1.0f);
simplyellow 0:a8839a6b9e39 13 }