add m5stick-c board (#473)
This commit is contained in:
1 parent
6af57f1db5
commit
d231c5bda1
2 files changed
+41
-12
No files matched your search
+22
-12
@@ -129,18 +129,28 @@ extern void MQTTtoIR(char * topicOri, JsonObject& RFdata);
|
||||
#endif
|
||||
|
||||
/*-------------------PIN DEFINITIONS----------------------*/
|
||||
#ifdef ESP8266
|
||||
#define IR_RECEIVER_PIN 2 //D4 /replace by 4 with sonoff rf bridge
|
||||
#define IR_EMITTER_PIN 16 //D0/ replace by 0 (D3) if you use IR LOLIN controller shield /replace by 5 with sonoff rf bridge
|
||||
#elif ESP32
|
||||
#define IR_RECEIVER_PIN 26
|
||||
#define IR_EMITTER_PIN 14
|
||||
#elif __AVR_ATmega2560__
|
||||
#define IR_RECEIVER_PIN 2 // 2 = D2 on arduino mega
|
||||
#define IR_EMITTER_PIN 9
|
||||
#else
|
||||
#define IR_RECEIVER_PIN 0 // 0 = D2 on arduino UNO
|
||||
#define IR_EMITTER_PIN 9
|
||||
#ifndef IR_RECEIVER_PIN
|
||||
#ifdef ESP8266
|
||||
#define IR_RECEIVER_PIN 2 //D4 /replace by 4 with sonoff rf bridge
|
||||
#elif ESP32
|
||||
#define IR_RECEIVER_PIN 26
|
||||
#elif __AVR_ATmega2560__
|
||||
#define IR_RECEIVER_PIN 2 // 2 = D2 on arduino mega
|
||||
#else
|
||||
#define IR_RECEIVER_PIN 0 // 0 = D2 on arduino UNO
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef IR_EMITTER_PIN
|
||||
#ifdef ESP8266
|
||||
#define IR_EMITTER_PIN 16 //D0/ replace by 0 (D3) if you use IR LOLIN controller shield /replace by 5 with sonoff rf bridge
|
||||
#elif ESP32
|
||||
#define IR_EMITTER_PIN 14
|
||||
#elif __AVR_ATmega2560__
|
||||
#define IR_EMITTER_PIN 9
|
||||
#else
|
||||
#define IR_EMITTER_PIN 9
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user