基于c51的交通信号灯程序 #include #defineuintunsignedint #defineucharunsignedchar sbitmyellow=P1^2; sbitsyellow=P1^6; ucharcodetable[]={0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8, 0x80,0x90}; ucharcodewei[4]={0x01,0x02,0x04,0x08}; voidinitime(); voiddelay(uintz); ucharmroad(intx0,uint