{
当 (1)
{
为 (tmr=0;tmr<0x2000;tmr++); //
send_字节(cmd_重置); // hd7279a
//******************************************
//
//******************************************
send_字节(cmd_测试); //
为 (j=0;j<3;j++) // 3
{
delay10ms(100);
}
send_字节(cmd_重置); //
//**********************************************
//
// , 10
// s0
//**********************************************
wait_cnter=0;
关键_号码=0xff;
write7279(blinkctl,0xfc); // 1 2
write7279(undecode,0x08); // 1 '_'
write7279(undecode+1,0x08);// 2 '_'
做
{
如果 (!key) //
{
关键_号码=read7279(cmd_读);
//
write7279(decode1+1,关键_号码/16);
// 2 8
write7279(decode1,关键_号码&放大;0x0f);
// 1 8
当 (!key); //
wait_cnter=0;
}
wait_cnter++;
} 当 (关键_number!=0 &放大;&放大; wait_cnter<0x30000);
// 0