矩陣鍵盤鍵值在數(shù)碼管上進(jìn)行顯示
typedef unsigned int uint;
typedef unsigned char
sbit BEEP=P3^3;
uchar code smg_tab[]={0x28,0x7e,0xa2,0x62,0x74,0x61,0x21,0x7a,0x20,0x60,0x30,0x25,0xa9,0x26,0xa1,0Xb1};
//延時(shí)函數(shù)
void _delay_ms(uint x)
{
}
//蜂鳴器函數(shù)
void Beep(void)
{
}
//鍵盤掃描函數(shù)
void Scan_Key(void)
{
}
void main(void)
{
}
評(píng)論