智能循迹小车程序include<reg52.h>define uchar unsigned chardefine uint unsigned intD0-D7:fbaedhcg 共阴 依次编码74LS04反相器驱动数码管uchar code table[10] = {0x5F0x420x9E0xD60xC30xD50xDD0x460xDF0xD7}uchar i = 0用于0-3数码管
数码管驱动include<reg51.h>define uint unsigned intdefine uchar unsigned charsbit DOUT=P33sbit LOAD=P12sbit DIN =P13sbit DCLK=P14void delay(uint z){uint xyfor(x=zx>0x--)for(y=112y>0y--)} void CH451_Write