用C编写一个51单片机程序,P2.2接一个独立按键,在1位数码管上显示按键按...答:include<reg51.h> void Js_Scan(void);void delay(int x);sbit key=P2^2;int code LED_Num[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; //数码管扫描数组,共阴极 //int code LED_Num[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90}; //...