Junichi Katsu
/
JBB_Motor_test
It is a motor driver test program Jksoft Blue mbed Board. Jksoft Blue mbed Boardのモータードライバテストプログラムです。
main.cpp
- Committer:
- jksoft
- Date:
- 2014-05-12
- Revision:
- 0:effe57895c37
- Child:
- 1:c49f6eb130b4
File content as of revision 0:effe57895c37:
#include "mbed.h" DigitalOut myled(LED1); TB6612 motor_1(p21,p19,p20); // PWM IN1 IN2 DigitalIn sw_1(p25); DigitalIn sw_2(p26); int main() { while(1) { myled = 1; wait(0.2); myled = 0; wait(0.2); } }