Value not defined


Can anyone help me it says that "VALUE" was not declared

declared is "results"

Welcome to the forum

Please post the full error message copied from the IDE using the button provided for the purpose

Put the error message and your code in separate sets of code tags rather than posting pictures of them

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination

https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum

And it is true.
If you don’t think so, show where you declare it

The internet could. You found a bad example, or failed to follow slavishly any good example you worked with.

Here's what less than a minute of googling found

if(irrecv.decode(&results)) //this checks to see if a code has been received
{
    if(results.value == 0xC284) //if the button press equals the hex value 0xC284
    {
        //do something useful here
    }
    irrecv.resume(); //receive the next value
}

which is the basic pattern for looking for , and receiving (maybe) a result from the library.

HTH and be careful out there.

a7

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.