diff --git a/config_RF.h b/config_RF.h index ad6aeee..885c775 100644 --- a/config_RF.h +++ b/config_RF.h @@ -69,10 +69,13 @@ RF supported protocols /*-------------------PIN DEFINITIONS----------------------*/ #ifdef ESP8266 #define RF_RECEIVER_PIN 0 // D3 on nodemcu - #define RF_EMITTER_PIN 3 // RX on nodemcu if it doesn't work with 3, try with 4 (D2) -#elif defined(ESP32) + #define RF_EMITTER_PIN 4 // RX on nodemcu if it doesn't work with 3, try with 4 (D2) +#elif ESP32 #define RF_RECEIVER_PIN 13 // D13 on DOIT ESP32 #define RF_EMITTER_PIN 12 // D12 on DOIT ESP32 +#elif __AVR_ATmega2560__ + #define RF_RECEIVER_PIN 1 //1 = D3 on mega + #define RF_EMITTER_PIN 4 #else //IMPORTANT NOTE: On arduino UNO connect IR emitter pin to D9 , comment #define IR_USE_TIMER2 and uncomment #define IR_USE_TIMER1 on library IRremote/boarddefs.h so as to free pin D3 for RF RECEIVER PIN //RF PIN definition