Closed NigelStanley closed 6 years ago
Looks like you're having a conflict between the tone library and this library. They both use Timer2 by default. Try using ToneAC instead, which uses timer1. You can also go to your IRLibTimer.h file (shown here), and comment out line 96, and uncomment line 95 (assuming you are using a standard Arduino), to use Timer1 for the IRLib instead.
Thanks. A quick comment out of all tone statements gets it working again. I'll now try your suggested changes.
I've developed a very straightforward sketch from one of the examples that works fine on an UNO.
I am then trying to use it within a complex sketch on a mega that will provide digital control for home audio.
But simply adding the include IRLIB,h statement causes a compile failure.
These are the relevant bits of the error message: