Ir Reciver

Arduino: 1.6.4 (Mac OS X), Board: "Arduino Uno"

AUniqueLEDClock:150: error: 'IRrecv' does not name a type
AUniqueLEDClock:153: error: 'decode_results' does not name a type
AUniqueLEDClock.ino: In function 'long unsigned int _readIRCode()':
AUniqueLEDClock:673: error: 'results' was not declared in this scope
AUniqueLEDClock:676: error: 'irReceiver' was not declared in this scope
AUniqueLEDClock.ino: In function 'void setup()':
AUniqueLEDClock:2395: error: 'irReceiver' was not declared in this scope
'IRrecv' does not name a type

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

Can anyone help I cannot figure these out?

You may get a better response if you supply the code.

Please put your code in its own window as seen in other posts. This can be done by placing     [code] and [/code]  around the code. This makes it easier for others to read.

Weedpharma

Can anyone help me with this?

My code keeps telling me that…

Arduino: 1.6.4 (Mac OS X), Board: “Arduino Uno”

AUniqueLEDClock:154: error: ‘IRpin’ was not declared in this scope
AUniqueLEDClock.ino: In function ‘long unsigned int _readIRCode()’:
AUniqueLEDClock:680: error: ‘irReceiver’ was not declared in this scope
AUniqueLEDClock.ino: In function ‘void setup()’:
AUniqueLEDClock:2399: error: ‘irReceiver’ was not declared in this scope
Decode_IR.ino: At global scope:
Decode_IR:28: error: redefinition of ‘IRrecv irrecv’
AUniqueLEDClock:154: error: ‘IRrecv irrecv’ previously declared here
Decode_IR:29: error: redefinition of ‘decode_results results’
AUniqueLEDClock:157: error: ‘decode_results results’ previously declared here
Decode_IR.ino: In function ‘void setup()’:
Decode_IR:31: error: redefinition of ‘void setup()’
AUniqueLEDClock:2385: error: ‘void setup()’ previously defined here
Decode_IR.ino: In function ‘void loop()’:
Decode_IR:37: error: redefinition of ‘void loop()’
AUniqueLEDClock:2450: error: ‘void loop()’ previously defined here
‘IRpin’ was not declared in this scope

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.

AUniqueLEDClock.ino (59.9 KB)

Taking the first error as an example

AUniqueLEDClock:154: error: 'IRpin' was not declared in this scope

Where in your program is IRpin declared ?

Another one

Decode_IR.ino: In function 'void setup()':
Decode_IR:31: error: redefinition of 'void setup()'

Are you sure that you don't have 2 tabs open in the IDE ?

As @Weedpharma has said, we need to see your code. The code button is the first one and looks like </>

…R

Duplicate threads merged.

Hi,
Can you please post a copy of your sketch, using code tags.
They are made with the </> icon in the reply Menu.
See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png or pdf?

Can you please post a picture of your project.

WHY???
You have the project infront of you, we don’t.
You know how it is wired, we don’t.

A picture, a circuit diagram and a sketch is worth a thousand words and can save a thousand ill informed posts.

Tom… :slight_smile:

My bet is on him having more than one tab open in the IDE
Example extracts for error messages

AUniqueLEDClock.ino: In function 'void setup()':
Decode_IR.ino: In function 'void setup()':