-
Notifications
You must be signed in to change notification settings - Fork 141
Description
For my project I need to take 6 IR signals and assign it in a array while printing the results in serial monitor.
` uint8_t j = 0;
while(j < 6)
{
if (receiver.getResults()) //check if IR sensor receiving or not
{
decoder.decode(); //start decoding
decoder.dumpResults(true); //print decode results to serial prot scrren for debugging
buttonValue[j] = decoder.value;
receiver.enableIRIn();
delay(2000);
j++;
}
}`
When I use dumpResults with true input program works just right. But when I use dumpResults with "false" input my code takes the first signal twice as seen in the screenshot.
I tried to look library files but I did not understand why changing input of dumpResults function effects the decoding the signal input.
I am using Arduino Mega and 1838T IR receiver.
Thanks
