Junichi Katsu
/
WallbotMotorTest
うおーるぼっとのモータテストプログラム
Embed:
(wiki syntax)
Show/hide line numbers
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 }
Generated on Mon Jul 18 2022 14:28:24 by 1.7.2