智能机器人程序.docVIP

  • 3
  • 0
  • 约8千字
  • 约 9页
  • 2024-02-25 发布于四川
  • 举报

//===============================================================//

#includeat89x51.h//包含51相关的头文件

typedefunsignedcharuchar;//重定义char数据类型

typedefunsignedintuint;//重定义int数据类型

#defineShowPortP2//定义数码管显示端口

ucharcodeLedShowData[]={0x03,0x9F,0x25,0x0D,0x99,//定义数码管显示数据

0x49,0x41,0x1F,0x01,0x19};//0,1,2,3,4,5,6,7,8,9

staticunsignedintRecvData;//定义接收红外数据变量

staticunsignedcharCountData;//定义红外个数计数变量

staticunsignedcharAddData;//定义自增变量

staticunsignedintLedFlash;//定义闪动频率计数变量

unsignedcharHeardData;//定义接收到数据的高位变量

bitRunFlag=0;//定义运行标志位

/***********完成基本数据变

文档评论(0)

1亿VIP精品文档

相关文档