Nguyễn Đức Hiếu
Trứng gà

char Led_Detect(int iState)
tại sao cái này lại trả về kiểu char??
và giải thích giúp em đoạn này
#pragma vector = PORT2_VECTOR
__interrupt void BUTTON_Interrupt_Handle(void)
{
if ((P2IFG & BTN1) == BTN1)
{
cLed_Detected = Led_Detect(iState);
P2IFG &= ~BTN1;
}
else if((P2IFG & BTN2) == BTN2)
{
cLed_Detected = 0;
P2IFG &= ~BTN2;
}