静态数码管显示

//静态数码管显示
#include<reg51.h>
typedef unsigned char u8;
typedef unsigned int u16;
sbit LSA=P2^2;
sbit LSB=P2^3;
sbit LSC=P2^4;
u8 code smgduan[]={
    
    0x3f,0x30,0x07};

void main()
{
    
    
	LSA=0;
	LSB=0;
	LSC=0;
	P0=smgduan[2];
	while(1);
}

猜你喜欢

转载自blog.csdn.net/m0_48808835/article/details/109876754