| 
 
| if((GPIO_ReadInputDataBit(GPIOD,GPIO_Pin_5)==0)&&(GPIO_ReadInputDataBit(GPIOD,GPIO_Pin_6)==0))                                                //ÉèÖüü {
 for(i=0;i<10000;i++);
 if((GPIO_ReadInputDataBit(GPIOD,GPIO_Pin_5)==0)&&(GPIO_ReadInputDataBit(GPIOD,GPIO_Pin_6)==0))
 {
 while((GPIO_ReadInputDataBit(GPIOD,GPIO_Pin_5)==0)&&(GPIO_ReadInputDataBit(GPIOD,GPIO_Pin_6)==0));
 LcdCommand(0x0f);              //ÏÔʾ»ÃæÉèÖÃ
 DisplayDS13021();
 ScreenNumber=0;
 LcdCommand(0x85);
 SetAddress=0X85;
 
 
 
 
 
 SetFlag=1;
 
 }
 }
 我是这样写的,不过不太灵敏。我不太会用什么状态机,高手支招,谢谢!
 
 
 | 
 |