S12单片机 1602显示和键盘输入 #include
#include unsigned char a[16]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,},b[4],c=0x01; unsigned int jianzhi; void key(void) { unsigned int hengzhi,leizhi=0,n,r=0x01; if(P3_0==0) hengzhi=0; if(P3_1==0)