1、ADC_RDY连接外部按键进入中断控制LED
2、实现按键灯亮灭
CY_ISR(ADC_RDY_Handler)
{
Pin_1_Write(~Pin_1_Read());
CyDelay(50);
ADC_RDY_ClearInterrupt();
}
int main()
{
CyGlobalIntEnable;
ADC_RDY_Int_StartEx(ADC_RDY_Handler);
//Sms_Blue_LED_Write(0);
//ADC_RDY_Write(1);
while(1)
{
// Pin_1_Write(~Pin_1_Read());
// CyDelay(50);
}
}