mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-07 05:42:53 +00:00
Cleaned up ESP32 integration, reverted ESP32 ifdefs on irreceive examples.
- fixed indenting on existing code in a few places for consistency - introduced IR_TIMER_USE_ESP32 for ifdefs within the code as per request - added comments explaining what's missing for irsend support on ESP32 - IRrecvDemo.ino gets a warning before and after interrupt is enabled in case it causes a crash TESTED=IoTuz ESP32 board and original 328p arduino to make sure current code did not break.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// Tell IRremote which Arduino pin is connected to the IR Receiver (TSOP4838)
|
||||
//
|
||||
int recvPin = 35;
|
||||
int recvPin = 11;
|
||||
IRrecv irrecv(recvPin);
|
||||
|
||||
//+=============================================================================
|
||||
@@ -14,7 +14,7 @@ IRrecv irrecv(recvPin);
|
||||
//
|
||||
void setup ( )
|
||||
{
|
||||
Serial.begin(115200); // Status message will be sent to PC at 9600 baud
|
||||
Serial.begin(9600); // Status message will be sent to PC at 9600 baud
|
||||
irrecv.enableIRIn(); // Start the receiver
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user