|
本帖最后由 我是菜鸟 于 2019-8-18 09:03 编辑
#include<reg51.h>
typedef unsigned int u16;
typedef unsigned char u8;
sbit A=P2^2;
sbit D=P2^3;
sbit C=P2^4;
u8 code smgduan[]={0x3f,0x06,0x5b,0x4f,0x66,0x7d,0x07,0x7f,0x6f,0x77,0x7c,
0x39,0x5e,0x79,0x71};
void main()
{
A=0;
D=0;
C=0;
P0=smgduan[12];
while(1);
} |
|