Junichi Katsu
/
WallbotMotorTest
うおーるぼっとのモータテストプログラム
Diff: main.cpp
- Revision:
- 0:6ac71784e91f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Dec 04 14:15:12 2012 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" +#include "TB6612.h" + +DigitalOut myled(LED1); + +TB6612 left(p21,p12,p11); +TB6612 right(p22,p14,p13); + +int main() { + while(1) { + left = 100; + right = 100; + wait(2.0); + left = -100; + right = -100; + wait(2.0); + } +}