crankyoldgit / IRremoteESP8266

Infrared remote library for ESP8266/ESP32: send and receive infrared signals with multiple protocols. Based on: https://github.com/shirriff/Arduino-IRremote/
GNU Lesser General Public License v2.1
2.96k stars 831 forks source link

Troubles combining IRsend and IRrecv #123

Closed Joypacharya closed 7 years ago

Joypacharya commented 7 years ago

Actually i am using both function in same hardware(12E). So, how to write any program? How to enable and disable receiver function ? If possible than put any example for combine function.

crankyoldgit commented 7 years ago

You can have a look at this code, it uses both the send and receive in the same code. They should work together fine. https://github.com/1technophile/OpenMQTTGateway/blob/master/OpenMQTTGateway.ino

Joypacharya commented 7 years ago

can you provide me more example for develop my code? I check this code but they did not on and off interrupt or enable/disable function ir receiver at transmit time. so, help me for that one. and thanks for quick reply.

crankyoldgit commented 7 years ago

http://lmgtfy.com/?q=ESP8266+disableIRIn()

There is at least one result on that page that has a link to some example code that seems to enable and disable the interrupts.