#include<reg52.h>
#include"delay.h"
#define PORT P0
unsigned char segdata[10] = {
0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
unsigned char bitdata[8] = {
0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
unsigned char tempdata[8];
unsigned char ch[9] = {
0};
unsigned char flag = 0;
unsigned char hour = 20;
unsigned char min = 39;
unsigned char sec = 45;
sbit bit_select = P2^0;
sbit seg_select = P2^1;
void display()
{
单片机==串口修改_数码管时间(18)
最新推荐文章于 2021-07-15 20:19:37 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)