alpha a

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers motor.h Source File

motor.h

00001 #ifndef _MOTOR_H_
00002 #define _MOTOR_H_
00003 #include "mbed.h"
00004 
00005 class Motor
00006 {
00007 public:
00008     Motor(PinName pinName1, PinName pinName2, PinName pinName3, PinName pinName4);
00009     void Fwd(float time);
00010     void Rev(float time);
00011     void Stop(void);
00012     int Speed(float speedA, float speedB);
00013     void Period_in_ms(int msPeriod);
00014 private:
00015     PwmOut pin1;
00016     PwmOut pin2;
00017     PwmOut pin3;
00018     PwmOut pin4;
00019 };
00020 
00021 //int motor(float speedA, float speedB);
00022 
00023 #endif