#include <reg52.h>
#include "delay.h"
sbit key1 = P2^0;
sbit seg_select = P1^0;
sbit bit_select = P1^1;
#define SEGPORT P0
unsigned char tempdata[2];
unsigned char segdata[10] = {
0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f
单片机==独立按键+数码管计数+扫描法(8)
最新推荐文章于 2025-01-12 00:11:56 发布