This library enables you to send and receive infra-red signals on an ESP8266 using Arduino framework (/~https://github.com/esp8266/Arduino)
This library is 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).
Seb's notes : I also changed the pulse parameters for Samsung, update the Panasonic and Samsung decoders and remove the SANYO decoders. The IR decoder was successfully tested with Panasonic and Samsung remote controls.
Marcos Marinho's notes :Many improvements and changes are done at this new version, Please read. changelog.md
To avoid changes at new versions use new functions, so send IR passing potocol as string to have generic code .
Use on larger then 32 bits protocols , need bits to allow generic protocols .
send_address("PANASONIC",0x4004,0x100bcbd,48);
send_address("SANYO",0x1FC0,0x00,42);
This two commands below allows the same result.
send_address("NEC",0x20,0x10,32);
send_raw("NEC",0x20DF10EF,32) ;
Others protocols use send_raw .
send_raw("SIRCS",0x090 ,12) ; // SONY uses SIRCS protocol as String
send_raw("JVC" ,0xf900 ,16) ;
or rawData as String
send_raw("SIRCS","90" ,12) ; // SONY uses SIRCS protocol
send_raw("RC6 ,"F800F8416",36) ;
Note , This signature as String allows larger 32bits raw data, and convert hex string to long long
Protocol number is decoded to String at results->protocol.
- Click "Download ZIP"
- Extract 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
If you want to contribute to this project:
- Report bugs and errors ,adding the dump if possible .
- Ask for enhancements
- Create issues and pull requests
- Tell other people about this library
Check here