#defineucharunsignedchar#defineuintunsignedint/*显示数据=====*/ucharcodea[9]={0xff,0xaa,0x55,0xcc,0x33,0xf0,0x0f,0x18,0x81};ucharkey;/*全局变量*//*IO口定义======*/sbitP20=P2^0;sbitP21=P2^1;/*子函数说明==*/ucharkey_scan(void);voiddelay(uinta);/*主程序=======*/voidmain(){uchari;while(1){i=key_sca