while(flag==2)
{
lcd_disp( 0x88,"自动驾驶",8) ; avoid_thing();
}
}
}
相关头文件与接口的定义
#include <>
#include ""
#include <>
#include <>
#define up 0x55
#define left 0x66
#define right 0x99
#define down 0xaa
#define stop 0x00
sbit rightled =P3^7;
sbit leftled=P3^6;
sbit d0=P3^2;
sbit d1=P3^3;
sbit d2=P3^4;
sbit d3=P3^5;
sbit beep=P2^0;
sbit moshi=P2^1;