TI_TB6612FNG is a library of TB6612FNG.

Dependents:   TI_TB6612FNG_SAMPLE

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Moter.h Source File

Moter.h

00001 #ifndef MBED_MOTER_H
00002 #define MBED_MOTER_H
00003 
00004 #include "mbed.h"
00005 
00006 class Moter
00007 {
00008 
00009 public:
00010 
00011     Moter(PinName pwm, PinName in1, PinName in2);
00012 
00013     float speed(float speed);
00014 
00015     void operator = ( float value ) {
00016         speed(value);
00017     }
00018 
00019 protected:
00020     PwmOut _pwm;
00021     DigitalOut _in1;
00022     DigitalOut _in2;
00023 };
00024 
00025 #endif