うおーるぼっとをWiiリモコンでコントロールする新しいプログラムです。 以前のものより、Wiiリモコンが早く繋がる様になりました。 It is a program which controls A with the Wii remote. ※ A Bluetooth dongle and a Wii remote control are needed.

Dependencies:   USBHost mbed FATFileSystem mbed-rtos

TB6612FNG2/TB6612.h

Committer:
jksoft
Date:
2013-06-10
Revision:
0:fccb789424fc

File content as of revision 0:fccb789424fc:

/**
 * 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:
    TB6612(PinName pwm, PinName fwd, PinName rev);
    void speed(int speed);
    void move(int speed , int time);
    void operator= ( int value )
    {
        speed(value);
    }
    
protected:
    PwmOut _pwm;
    DigitalOut _fwd;
    DigitalOut _rev;
};

#endif