Dependencies:   mbed

main.cpp

Committer:
hayama
Date:
2012-03-01
Revision:
0:0f8b12b8ad87

File content as of revision 0:0f8b12b8ad87:

#include "mbed.h"

BusOut motorR(p5,  p6,  p7,  p8 );
BusOut motorL(p11, p12, p13, p14 );

int main() {
    while(1) {
        motorR = 1; motorL = 8; 
        wait(0.01);
        motorR = 2; motorL = 4;
        wait(0.01); 
        motorR = 4; motorL = 2;
        wait(0.01);
        motorR = 8; motorL = 1;
        wait(0.01);
    }    
}