Modify pins to match the new wiring schema
This commit is contained in:
1 parent
3c5daf49e4
commit
5de2e1f517
5 files changed
+28
-73
No files matched your search
+4
-10
@@ -31,15 +31,9 @@
|
||||
#define dht_always true // if false when the current value for temp or hum is the same as previous one don't send it by MQTT
|
||||
#define TimeBetweenReadingDHT 30000 // time between 2 DHT readings
|
||||
/*-------------------PIN DEFINITIONS----------------------*/
|
||||
#ifdef I2C_Wiring // With Support for I2C Modules
|
||||
#define DHT_RECEIVER_PIN 14 //on nodeMCU this is D5 GPIO14
|
||||
#endif
|
||||
|
||||
#ifdef Classic_Wiring // Without Support for I2C Modules
|
||||
#define DHT_RECEIVER_PIN 0 //on nodeMCU this is D3 GPIO0
|
||||
#endif
|
||||
|
||||
#ifdef RFM69_Wiring // Without Support for I2C Modules and HM10 or 11
|
||||
#define DHT_RECEIVER_PIN 0 //on nodeMCU this is D3 GPIO0
|
||||
#ifdef ESP8266
|
||||
#define DHT_RECEIVER_PIN D1
|
||||
#else
|
||||
#define DHT_RECEIVER_PIN D8
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user