- 15
- 0
- 约1.08万字
- 约 10页
- 2017-10-20 发布于四川
- 举报
#includeAT89x51.H
#include intrins.h
#define ECHO P2_4 //超声波接口定义
#define TRIG P3_0 //超声波接口定义
#define Sevro_moto_pwm P2_7 //接舵机信号端输入PWM信号调节速度
#define Left_1_led P3_4 //P3_4接四路寻迹模块接口第一路输出信号即中控板上面标记为OUT1
#define Left_2_led P3_5 //P3_5接四路寻迹模块接口第二路输出信号即中控板上面标记为OUT2
#define Right_1_led P3_6 //P3_6接四路寻迹模块接口第三路输出信号即中控板上面标记为OUT3
#define Right_2_led P3_7 //P3_7接四路寻迹模块接口第四路输出信号即中控板上面标记为OUT4
#define Left_moto_pwm P1_1 //PWM信号端
#define Left_moto_pwm1 P1_3
#define Right_moto_pwm P1_5
#define Right_moto_pwm1 P1_7
#define Left_
原创力文档

文档评论(0)