![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
right and left move at the same time
pin.h
- Committer:
- eri
- Date:
- 2019-04-26
- Revision:
- 0:411ab20ce87d
- Child:
- 1:34371ffd3dc0
File content as of revision 0:411ab20ce87d:
#include "mbed.h" #include "EC.h" #include "KondoServo.h" double resolution=500; PwmOut motor_ro_f(p21); //モータ正転 PwmOut motor_ro_b(p22); //モータ逆転 PwmOut motor_ri_f(p24); //モータ正転 PwmOut motor_ri_b(p23); //モータ逆転 Ec ec_ro(p5,p6,NC,resolution,0.01); Ec ec_ri(p8,p7,NC,resolution,0.01); CAN can(p9,p10); DigitalIn switch1(p12); DigitalIn switch2(p19); DigitalOut air1(p20); DigitalOut air_hand(p17); DigitalOut led1(LED1); DigitalOut led2(LED2); KondoServo servo(p13,p14,1,115200);