Dependencies:   mbed

Committer:
vcazan
Date:
Sun Jan 17 17:17:06 2010 +0000
Revision:
0:552b174f8c2f

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vcazan 0:552b174f8c2f 1 #ifndef MBED_MOTOR_H
vcazan 0:552b174f8c2f 2 #define MBED_MOTOR_H
vcazan 0:552b174f8c2f 3
vcazan 0:552b174f8c2f 4 #include "mbed.h"
vcazan 0:552b174f8c2f 5
vcazan 0:552b174f8c2f 6 class Motor {
vcazan 0:552b174f8c2f 7
vcazan 0:552b174f8c2f 8 public:
vcazan 0:552b174f8c2f 9
vcazan 0:552b174f8c2f 10 Motor(PinName pwm, PinName fwd, PinName rev);
vcazan 0:552b174f8c2f 11 void speed (float);
vcazan 0:552b174f8c2f 12
vcazan 0:552b174f8c2f 13 protected:
vcazan 0:552b174f8c2f 14 PwmOut _pwm;
vcazan 0:552b174f8c2f 15 DigitalOut _fwd;
vcazan 0:552b174f8c2f 16 DigitalOut _rev;
vcazan 0:552b174f8c2f 17
vcazan 0:552b174f8c2f 18 };
vcazan 0:552b174f8c2f 19
vcazan 0:552b174f8c2f 20 #endif