I'm using MPLAB IDE to compile but having problems with some of the code here. MPLAB does not recognize some of the codes i wrote. It cannot identify pin_C2 etc. How to define single pin in MPLAB? i previously used C compiler IDE and it worked fine. below is part of my code:
if (input(pin_C2))
{
no=1;
output_high(pin_D2);
while(input(pin_C2));
delay_ms(2000);
output_low (pin_D2);
send_packet(no);
}