单片机实训:数码管显示学号后4位。89C51求KEIL码
单片机实训:数码管显示学号后4位。89C51求KEIL码
日期:2021-05-24 10:12:09 人气:1
#include "reg51.h"
#define uchar unsigned char
uchar display_code[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};
void delay(void)
{
uchar i;
for(i=250;i>0;i--);
}
#define uchar unsigned char
uchar display_code[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};
void delay(void)
{
uchar i;
for(i=250;i>0;i--);
}