ESP32 support using the IRremoteESP8266 library
This commit is contained in:
parent
a5b9442061
commit
4431b31968
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
|
||||||
#ifdef ESP8266
|
#if defined(ESP8266) || defined(ESP32)
|
||||||
#include <IRsend.h> // From IRremoteESP8266 library
|
#include <IRsend.h> // From IRremoteESP8266 library
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -75,7 +75,7 @@ class IRSenderESP32 : public IRSender
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ESP8266
|
#if defined(ESP8266) || defined(ESP32)
|
||||||
class IRSenderIRremoteESP8266 : public IRSender
|
class IRSenderIRremoteESP8266 : public IRSender
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -113,4 +113,4 @@ class IRSenderESP8266Alt : public IRSender
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -1,5 +1,5 @@
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#ifdef ESP8266
|
#if defined(ESP8266) || defined(ESP32)
|
||||||
#include <IRSender.h>
|
#include <IRSender.h>
|
||||||
|
|
||||||
IRSenderIRremoteESP8266::IRSenderIRremoteESP8266(uint8_t pin) : IRSender(pin), _ir(pin)
|
IRSenderIRremoteESP8266::IRSenderIRremoteESP8266(uint8_t pin) : IRSender(pin), _ir(pin)
|
||||||
|
|
Loading…
Reference in New Issue