ESP32 support using the IRremoteESP8266 library

This commit is contained in:
Toni 2020-09-02 15:16:11 +03:00
parent a5b9442061
commit 4431b31968
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
#include <Arduino.h>
#ifdef ESP8266
#if defined(ESP8266) || defined(ESP32)
#include <IRsend.h> // From IRremoteESP8266 library
#include <stdint.h>
#endif
@ -75,7 +75,7 @@ class IRSenderESP32 : public IRSender
};
#endif
#ifdef ESP8266
#if defined(ESP8266) || defined(ESP32)
class IRSenderIRremoteESP8266 : public IRSender
{
public:
@ -113,4 +113,4 @@ class IRSenderESP8266Alt : public IRSender
};
#endif
#endif
#endif

View File

@ -1,5 +1,5 @@
#include <Arduino.h>
#ifdef ESP8266
#if defined(ESP8266) || defined(ESP32)
#include <IRSender.h>
IRSenderIRremoteESP8266::IRSenderIRremoteESP8266(uint8_t pin) : IRSender(pin), _ir(pin)