#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()
{
此帖出自
小平头技术问答
一周热门 更多>