void xianshi() //显示
{
//unsigned char x_a1,x_a2,x_a3; //全局变量显示用
led_1_h; //第一次扫描
led_2_g;
led_3_g;
led_4_g;
led_5_g;
led_6_g;
if(x_a1&0x20){led_4_l;} else{led_4_g;}
if(x_a1&0x10){led_5_l;} else{led_5_g;}
if(x_a1&0x04){led_2_l;} else{led_2_g;}
if(x_a1&0x02){led_3_l;} else{led_3_g;}
if(x_a3&0x10){led_6_l;} else{led_6_g;}
yanshi(10);
|