cyborg5 / IRLib

An Arduino library for encoding and decoding infrared remote signals
Other
213 stars 76 forks source link

IRfreq.ino not compiling #7

Closed MaddoScientisto closed 6 years ago

MaddoScientisto commented 10 years ago

I tried to run the IRfreq example but I'm getting the followign errors:

sketch_jun26a:19: error: 'IRfrequency' does not name a type
sketch_jun26a.ino: In function 'void setup()':
sketch_jun26a:26: error: 'My_Freq' was not declared in this scope
sketch_jun26a.ino: In function 'void loop()':
sketch_jun26a:33: error: 'My_Freq' was not declared in this scope
cyborg5 commented 10 years ago

Just to make sure I had not made a mistake I re-downloaded the entire library from here on GitHub. That sketch compiles perfectly. Make sure that you got the latest version of the library. Try changing your Arduino IDE to a different type of Arduino hardware and then change it back again. This will force the Arduino IDE to recompile all libraries from scratch and not use previously compiled versions. And make sure that you did indeed get the entire library downloaded and installed. That sketch only works with the latest version 1.5.

MaddoScientisto commented 10 years ago

You are right, I did what you said and it compiled fine this time!

Although, I was under the assumption that IRfreq was supposed to tell me the frequency of whatever signal is sent to it so I tried to wire an IR receiver to it and send something but all it tells me is the interrupt pin and nothing else, dumpresults is set to true.

Am I using it right?