うおーるぼっとのモータテストプログラム

Dependencies:   TB6612FNG2 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "TB6612.h"
00003 
00004 DigitalOut myled(LED1);
00005 
00006 TB6612 left(p21,p12,p11);
00007 TB6612 right(p22,p14,p13);
00008 
00009 int main() {
00010     while(1) {
00011         left = 100;
00012         right = 100;
00013         wait(2.0);
00014         left = -100;
00015         right = -100;
00016         wait(2.0);
00017     }
00018 }