add specific pinout for RF on arduino mega
This commit is contained in:
1 parent
efadb696b9
commit
a587d9dd2f
1 file changed
+5
-2
+5
-2
@@ -69,10 +69,13 @@ RF supported protocols
|
|||||||
/*-------------------PIN DEFINITIONS----------------------*/
|
/*-------------------PIN DEFINITIONS----------------------*/
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
#define RF_RECEIVER_PIN 0 // D3 on nodemcu
|
#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)
|
#define RF_EMITTER_PIN 4 // RX on nodemcu if it doesn't work with 3, try with 4 (D2)
|
||||||
#elif defined(ESP32)
|
#elif ESP32
|
||||||
#define RF_RECEIVER_PIN 13 // D13 on DOIT ESP32
|
#define RF_RECEIVER_PIN 13 // D13 on DOIT ESP32
|
||||||
#define RF_EMITTER_PIN 12 // D12 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
|
#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 <library>IRremote/boarddefs.h so as to free pin D3 for RF RECEIVER PIN
|
//IMPORTANT NOTE: On arduino UNO connect IR emitter pin to D9 , comment #define IR_USE_TIMER2 and uncomment #define IR_USE_TIMER1 on library <library>IRremote/boarddefs.h so as to free pin D3 for RF RECEIVER PIN
|
||||||
//RF PIN definition
|
//RF PIN definition
|
||||||
|
|||||||
Reference in new issue
Block a user