void AD1_OnEnd(void){ word AD_Result; AD1_GetValue16(&AD_Result); if(AD_Result > 0x7FFF) { LED1_ClrVal(); //OFF LED1 LED2_NegVal(); }}
void AD1_OnEnd(void){ word AD_Result; AD1_GetValue16(&AD_Result); if(AD_Result > 0x07FF) { LED1_ClrVal(); } else { LED2_NegVal(); }}