This is for our FYDP project. 2 MPU6050s are used

Dependencies:   Servo mbed

drivers/TB6612FNG2/TB6612.h

Committer:
majik
Date:
2015-03-21
Revision:
0:21019d94ad33

File content as of revision 0:21019d94ad33:

/**
 * Motor Driver TB6612 Control Library
 *
 * -- TB6612 is a device of the rohm. 
 *
 * Copyright (C) 2012 Junichi Katsu (JKSOFT) 
 */

#ifndef MBED_TB6612_H
#define MBED_TB6612_H

#include "mbed.h"

class TB6612 {
public:

    float scale;

    TB6612(PinName pwm, PinName fwd, PinName rev);
    
    void speed(int speed);
    void operator= ( int value )
    {
        speed(value);
    }
    
protected:
    PwmOut _pwm;
    DigitalOut _fwd;
    DigitalOut _rev;
};

#endif