Commit 457a6703 authored by Chris Young's avatar Chris Young

Update to version 1.51

Added USE_ATTACH_INTERRUPTS
parent 416cc09e
Change Log for IRLib – an Arduino library for infrared encoding and decoding
Copyright 2013-2014 by Chris Young http://tech.cyborg5.com/irlib/
Copyright 2013-2015 by Chris Young http://tech.cyborg5.com/irlib/
Version 1.51 March 2015
Added USE_ATTACH_INTERRUPTS define to allow disabling IRrecvPCI and IRfrequency both of which use the built-in "attachInterrupt()" function that can cause conflicts with other ISR routines using INT0_vect.
Version 1.5 June 2014
New bit-bang option for PWM output frequency setting. Now can use any output pin with no hardware timers. Note:bit-bang output not as accurate as timer-based frequency selection.
Major rewrite of IRLibTimer.h to facilitate bit-bang. Separated hardware timer selection and specification into sending and receiving sections in order to implement bit-bang.
......
/* IRLib.cpp from IRLib - an Arduino library for infrared encoding and decoding
* Version 1.5 June 2014
* Version 1.51 March 2015
* Copyright 2014 by Chris Young http://cyborg5.com
*
* This library is a major rewrite of IRemote by Ken Shirriff which was covered by
......@@ -763,7 +763,7 @@ bool IRrecvLoop::GetResults(IRdecodeBase *decoder) {
IRrecvBase::GetResults(decoder);
return true;
}
#ifdef USE_ATTACH_INTERRUPTS
/* This receiver uses the pin change hardware interrupt to detect when your input pin
* changes state. It gives more detailed results than the 50µs interrupts of IRrecv
* and theoretically is more accurate than IRrecvLoop. However because it only detects
......@@ -914,7 +914,7 @@ void IRfrequency::DumpResults(bool Detail) {
DumpUnavailable();
#endif
};
#endif // ifdef USE_ATTACH_INTERRUPTS
/*
* The remainder of this file is all related to interrupt handling and hardware issues. It has
......
/* IRLib.h from IRLib an Arduino library for infrared encoding and decoding
* Version 1.5 June 2014
* Version 1.51 March 2015
* Copyright 2014 by Chris Young http://cyborg5.com
*
* This library is a major rewrite of IRemote by Ken Shirriff which was covered by
......@@ -44,6 +44,12 @@
* Comment out the following define to eliminate the conflicts.
*/
#define USE_IRRECV
/* Similarly some other libraries have conflicts with the built in Arduino functions
* "attachInterrupt()" and "detachInterrupt()" which are used by the IRrecvPCI and
* IRfrequency classes. If you're not using either of those classes and get conflicts
* related to INT0_vect then comment out the following line to eliminate the conflicts.
*/
#define USE_ATTACH_INTERRUPTS
/* If not using either DumpResults methods of IRdecode nor IRfrequency you can
* comment out the following define to eliminate considerable program space.
*/
......@@ -312,6 +318,7 @@ public:
* software for Windows PCs. Many thanks to the people at http://analysir.com for their
* assistance in developing this section of code.
*/
#ifdef USE_ATTACH_INTERRUPTS
class IRrecvPCI: public IRrecvBase
{
public:
......@@ -350,6 +357,7 @@ private:
unsigned int i;
unsigned long Sum;
};
#endif // ifdef USE_ATTACH_INTERRUPTS
//Do the actual blinking off and on
//This is not part of IRrecvBase because it may need to be inside an ISR
......
IRLib – an Arduino library for infrared encoding and decoding
Version 1.5 June 2014
Copyright 2013, 2014 by Chris Young http://cyborg5.com
Version 1.51 March 2015
Copyright 2013-2015 by Chris Young http://tech.cyborg5.com/irlib/
This library is a major rewrite of IRemote by Ken Shirriff which was covered
by GNU LESSER GENERAL PUBLIC LICENSE which as I read it allows me to make
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment