This library enables you to send and receive infra-red signals on an ESP8266 using the Arduino framework using common 940nm IR LEDs and common IR receiver modules. e.g. TSOP{17,22,24,36,38,44,48}* etc.
Version 2.4.3 of the library is now available. You can view the Release Notes for all the significant changes.
Usage of the library slight changed at v2.0. You will need to change your usage to work with v2.0 and beyond. You can read more about the changes required on our Upgrade to v2.0 page.
Before reporting an issue or asking for help, please try to follow our Troubleshooting Guide first.
Some common answers to common questions and problems are on our F.A.Q. wiki page.
- Click the "Sketch" -> "Include Library" -> "Manage Libraries..." Menu items.
- Enter
IRremoteESP8266
into the "Filter your search..." top right search box. - Click on the IRremoteESP8266 result of the search.
- Select the version you wish to install and click "Install".
- Click on "Clone or Download" button, then "Download ZIP" on the page.
- Extract the contents of the downloaded zip file.
- Rename the extracted folder to "IRremoteESP8266".
- Move this folder to your libraries directory. (under windows:
C:\Users\YOURNAME\Documents\Arduino\libraries\
) - Restart your Arduino IDE.
- Check out the examples.
cd ~/Arduino/libraries
git clone https://github.com/markszabo/IRremoteESP8266.git
cd ~/Arduino/libraries/IRremoteESP8266 && git pull
If you want to contribute to this project, consider:
- Report bugs and errors
- Ask for enhancements
- Improve our documentation
- Create issues and pull requests
- Tell other people about this library
Available here
This library was originally based on Ken Shirriff's work (https://github.com/shirriff/Arduino-IRremote/)
Mark Szabo has updated the IRsend class to work on ESP8266 and Sebastien Warin the receiving & decoding part (IRrecv class).
As of v2.0, the library was almost entirely re-written with the ESP8266's resources in mind.