Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V172 compiles for Uno but does not run #2

Closed
TomD62 opened this issue Nov 19, 2014 · 11 comments
Closed

V172 compiles for Uno but does not run #2

TomD62 opened this issue Nov 19, 2014 · 11 comments

Comments

@TomD62
Copy link

TomD62 commented Nov 19, 2014

I tried 172, it compiled for Teensy, but no serial output if the library was in use, commenting out IRLbegin<IR_ALL>(interruptIR); would allow serial output on the Teensy.
I then tried 1.7.2 on an Uno, the examples/Demos/Receive_Blocking and NoBlocking would not compile.
Line: const int pinReceiveIR = digitalPinToInterrupt(2); Caused an error when compiling Receive_NoBlocking:14: error: 'NOT_AN_INTERRUPT' was not declared in this scope.'
Editted this line back to the 171 convention of const int pinReceiveIR = 0; with my IR module output pin on Digital Pin2
and I get the initial serial console message: Startup, but no data on button presses with 1.7.2.
Neither Receive_Blocking and Receive_NoBlocking work in V172 on the Uno,
If I revert back to V171 library, both examples work correctly

I'm running the 1.0.6 IDE, installed the library per the instructions in the readme.
Tried 1.5.2 IDE on my Uno, same results with 1.7.2, but 1.7.1 works.

@NicoHood
Copy link
Owner

Please use IDE 1.5.8 or newer (in general). 1.0.6 has a bug that there is a definition missing.
You can simply fix this by just using the interrupt number yourself. See the linked Interrupt info in the readme for this. On an Uno pin 2->0 and pin 3->1.

I filed an issue on github:
arduino/Arduino#2462

@NicoHood
Copy link
Owner

There was a critical bug that the whole IRLremote was broken due to a typo. Thx!
Fixed with 1.7.3
7b655f2

I also added a notice to the readme for 1.0.6 users to add a define or just use the interrupt number.

Please test the teensy again. I cannot help you more unless i own a teensy.

@atuline
Copy link

atuline commented Nov 28, 2014

Confirming that it WAS broken on an UNO a day ago (on 1.0.5-r2). Re-downloaded Master and it's now working. Oh, and if/when I get to using a Teensy and find it's not working with IRLRemote. . . I'll buy one and mail it to you for testing. 💃

@NicoHood
Copy link
Owner

Hey, that'd be great :)
If you really want to do this email me on my blog.

Thx for the confirmation about the Uno. I'll leave this issue open for the Teensy.

It would also be nice if someone can test several remotes and look if they are recognized. Especially check the RAW output and compare since it could accidentally recognize it as wrong protocol maybe. I'd love to add some more protocols. The main protocols should work though.

@NicoHood
Copy link
Owner

It should compile with 1.5.8 and 1.0.6 fine now. Added a workaround for 1.0.6 (its an Arduino bug, has nothing to do with this lib still)
54137ab

@TomD62
Copy link
Author

TomD62 commented Dec 2, 2014

V1.73 works for me as well on the Uno
I did change the line" const int pinReceiveIR = 0 "
and connect the sensor output to pin2 when using V1.5.2 and V1.0.6 Arduino App

@TomD62 TomD62 closed this as completed Dec 2, 2014
@NicoHood
Copy link
Owner

NicoHood commented Dec 2, 2014

Nice to hear :)

What about Teensy? Does it work?

@TomD62
Copy link
Author

TomD62 commented Dec 2, 2014

Nope, It compiles, lots of warnings though.
But it does not run, it hangs before any serial output is sent.
If I comment out the IRLremote functions, it does send serial output.
I'll see if I can narrow it down further today.

On Tue, Dec 2, 2014 at 10:01 AM, Nico [email protected] wrote:

Nice to hear :)

What about Teensy? Does it work?


Reply to this email directly or view it on GitHub
#2 (comment).

@NicoHood NicoHood changed the title V172 compiles for Teensy3.x, but does not run, does not work on Uno. V172 compiles for Uno but does not run Dec 2, 2014
@NicoHood
Copy link
Owner

NicoHood commented Dec 2, 2014

Can you please comment on the new issue and tell me what teensy board you are using? I dont have any teensy, so i cannot really help you that much.

@TomD62
Copy link
Author

TomD62 commented Dec 3, 2014

Running the ARM based Teensy 3.0 and 3.1 boards
With 1.0.6 Arduino IDE (IDE 1.5.x not supported by Teensy 3.x)

@NicoHood
Copy link
Owner

NicoHood commented Dec 4, 2014

Please post anything related to this bug here:
#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants