#include <reg52.h>
#define uint unsigned int
#define uchar unsigned char
void delay(uint);
sbit wela=P2^7;
sbit dula=P2^6;
uchar code table[]={
0x3f,0x06,0x5b,0x4f,
0x66,0x6d,0x7d,0x07,
0x7f,0x6f,0x77,0x7c,
0x39
第一个数码管显示1,时间为0.5s,然后关闭它,立即让第二个数码管显示2,时间为0.5s,再关闭它.....一直循环...
最新推荐文章于 2023-03-12 14:45:50 发布