
基于STC89C52RC模块的巡线小车
基于STC89C52RC模块的巡线小车
所需头文件:
#include <reg52.h>
#include <intrins.h>
定义电机驱动引脚:
/*电机驱动引脚定义*/
sbit qlIN1=P3^0; //左前电机IN1引脚定义
sbit qlIN1=P3^1; //左前电机IN2引脚定义
sbit qlIN1=P3^2; //右前电机IN1引脚定义
sbit qlIN1=P3^3; //右前电机IN2引脚定义
sbit qlIN1=P








