Browse by type
A library enabling the sending & receiving of infrared signals.
Available as Arduino library "IRremote".
NEC / Onkyo / Apple, Denon / Sharp, Panasonic / Kaseikyo,
JVC, LG, RC5, RC6, Samsung, Sony, Marantz
Universal Pulse Distance, Universal Pulse Width, Universal Pulse Distance Width
Hash, Pronto
BoseWave, Bang & Olufsen, Lego, FAST, Whynter, Marantz, MagiQuest, Velux, OpenLASIR
Protocols can be switched off and on by defining macros before the line #include <IRremote.hpp> like here:
#define DECODE_NEC
//#define DECODE_DENON
#include <IRremote.hpp>
Or "I build a gadget with 2 motors controlled by IR and the IR stops after the first motor command".
This is due to the fact, that the motor control by AnalogWrite() uses the same timer as IR receiving.
See this table for the list of timers and pins.
This library has been refactored, breaking backward compatibility with the old version, on which many examples on the Internet are based.
If your code uses irrecv.decode(&results), it is written for Version 2.x. This library (Version 4.x) now uses a simpler IrReceiver.decode() syntax. See the Conversion guide below.
$ claude mcp add Arduino-IRremote \
-- python -m otcore.mcp_server <graph>