I see.
If i do use the rc_dig_inXX variables will they not provide the same input as GetDigitalInput(XX)? The reason I'm asking is that when I press the remote button the light on the IR Sensor lights up but it doesn't show anything.
By using the if structure:
Code:
if(GetDigitalInput(IR_IN1))
printf("IR #1\n");
else if(GetDigitalInput(IR_IN2))
printf("IR #2\n");
else if(GetDigitalInput(IR_IN3))
printf("IR #3\n");
else if(GetDigitalInput(IR_IN4))
printf("IR #4\n");
I would be able to see when buttons 1, 2, 3, or 4 are pushed correct.
What I originally had was the code above in a very long loop to just see if any of the above printf() commands would work however they did not.
I will try using the rc_dig_inXX variables and after that implement a quicker Check() function.
Thanks for all the help.