#include <iom8v.h>
#define uchar unsigned char
#define uint unsigned int
uchar Table[]={
0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};//数字0~9
uchar Data[4]={
0,0,0,0};//位控制
uchar CNT=0;//计数初值
uchar Timer[2]={
0x00,0x00};//初始时间00:00
void DelayMS(uint i)//延时
{
uint j;
for
ATMEGA8(数码管时钟)
最新推荐文章于 2024-05-31 23:33:27 发布