调试了一天还是的交通灯还是不能让数码管显示,求帮忙修改啊

2019-03-24 18:08发布

AZ0KG2P%JZQL)GPT)_F54[9.png #include <reg52.h>
#define uchar unsigned char
#define uint  unsigned int
sbit wela =P2^3;
sbit dula =P2^4;
sbit  red = P1^4;
sbit  yellow = P1^3;
sbit  green=P1^2;
uchar shi,ge;
uchar num=1;
static unsigned char color = 1;  
static unsigned char timer = 0;  
uchar code table[] = { 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07,0x7f, 0x6f};
bit flag1s = 1;         
void Timer0_init();
void light_crol();
void delay(uint x);
void main()
{

此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。