From a587d9dd2f158945bdd7ed72bc4131bda9645b35 Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Thu, 31 Jan 2019 20:42:26 +0100 Subject: [PATCH] add specific pinout for RF on arduino mega --- config_RF.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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