Added ESP32 IR receive support (IRsend not implemented yet).

- disable a lot of defines not relevant to ESP32, set them to 1 (no-op)
- change default IR pin to 35 from 11
- changed serial speed to 115200 (9600 is too slow to keep up with IR input)
- irSend disables code that will not compile on ESP32. It won't work,
  but it won't break compilation either.
This commit is contained in:
Marc MERLIN
2017-03-19 20:27:56 -07:00
parent 048efb23a2
commit aa8f7b31fe
7 changed files with 52 additions and 5 deletions

View File

@@ -6,7 +6,7 @@
//------------------------------------------------------------------------------
// Tell IRremote which Arduino pin is connected to the IR Receiver (TSOP4838)
//
int recvPin = 11;
int recvPin = 35;
IRrecv irrecv(recvPin);
//+=============================================================================
@@ -14,7 +14,7 @@ IRrecv irrecv(recvPin);
//
void setup ( )
{
Serial.begin(9600); // Status message will be sent to PC at 9600 baud
Serial.begin(115200); // Status message will be sent to PC at 9600 baud
irrecv.enableIRIn(); // Start the receiver
}