モータードライバ確認用

Dependencies:   TA7291P mbed

main.cpp

Committer:
tomoya123
Date:
2017-03-17
Revision:
0:c07686c99919

File content as of revision 0:c07686c99919:

#include "mbed.h"
#include "ta7291p.h"

ta7291p motor1(p25,p24,p26);
ta7291p motor2(p22,p21,p23);

int main() {
    while(1) {
        motor1.rotf(1.0);
        motor2.rotf(1.0);
        wait(1.0);
        motor1.rotstop();
        motor2.rotstop();
        wait(2.0);
        motor1.rotb(1.0);
        motor2.rotb(1.0);        
    }
}