Junichi Katsu
/
MotorTest
モータ出力例 ロボット製作セミナー演習
Revision 0:21da967b3c62, committed 2013-08-10
- Comitter:
- jksoft
- Date:
- Sat Aug 10 03:19:27 2013 +0000
- Commit message:
- Rev1
Changed in this revision
diff -r 000000000000 -r 21da967b3c62 TB6612FNG2.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TB6612FNG2.lib Sat Aug 10 03:19:27 2013 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/jksoft/code/TB6612FNG2/#051a7ecff13e
diff -r 000000000000 -r 21da967b3c62 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Aug 10 03:19:27 2013 +0000 @@ -0,0 +1,17 @@ +#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); + } +}
diff -r 000000000000 -r 21da967b3c62 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Aug 10 03:19:27 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e3affc9e7238 \ No newline at end of file