Final

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Motor_Driver.h Source File

Motor_Driver.h

00001 #ifndef Motor_Driver_H
00002 #define Motor_Driver_H
00003 
00004 #include "mbed.h"
00005 
00006 class BLDR {
00007 public:
00008     BLDR(PinName in1, PinName in2, PinName pmw);
00009     void set_dir(int dir);
00010     void set_duty(float dc);
00011     
00012 private:
00013     PwmOut _pwm;
00014     DigitalOut _in1;
00015     DigitalOut _in2;
00016     
00017 };
00018 
00019 //needed ending text
00020 #endif