Newbie help: Not declared in this scope

Hi everyone, To give you some background i've recently taken up playing with my Arduino again after many years so i can get a IR based project done for my partner.

I have found some instructables online to use as a base for a prototype so she can get her presentation done with a basic working prototype and then i can focus fully on learning the ins and outs during next year and do a full custom code and prototype pcb.

The project is a basic laser tag system and then ill work on features etc next year.
The issue i have been having is the: 'Not declared in this scope' error, i have the IRremote plugin downloaded but have had this issue across 2 code sets.

I have listed one code set below:


Any help would be greatly appreciated so i can get this finished in time.
many thanks

Welcome to the forum

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

image
The compiler is reporting an error with these lines

It seems very likely that the closing curly braces should not be there and there may be other problems

The images posted of a "sketch" are incomplete, a mashup of two sketches in one, with the attempt to have two receive instances (recva, recvb)... so... on this page, a known library author shows two basic IRremote sketches... although the sketches compile, you see a notification of the use of outdated software, and are advised to update.

https://www.pjrc.com/teensy/td_libs_IRremote.html

**************************************************************************************************
Thank you for using the IRremote library!
It seems, that you are using a old version 2.0 code / example.
This version is no longer supported!
Please use one of the new code examples from the library, available at "File > Examples > Examples from Custom Libraries / IRremote".

Start with the SimpleReceiver or SimpleSender example.

The examples are documented here:

 https://github.com/Arduino-IRremote/Arduino-IRremote#examples-for-this-library

A guide how to convert your 2.0 program is here:

 https://github.com/Arduino-IRremote/Arduino-IRremote#converting-your-2x-program-to-the-4x-version

Thanks

**************************************************************************************************

The up-to-date examples.

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