Pr/61 add I2C sensors BME280 and BH1750 (#64)
* changed user config * added lightsensor module * changed Pin Adresses * Added I2C Lightsensor Added the I2C Lightsensor and Switchted most Pins * removed some debug to serial removed some debug stuff was send to serial console * Merge with Master * Too much things for arduino uno per default remove sensors for it * Adding I2C Module function Opens the Door on OpenMQTTGateway for "i2c Bus Modules/Sensors" * Fixing BH1750 detection Fixing the detection for a missing BH1750 Module * Add libraries and define sensors depending on wiring type #63
This commit is contained in:
1 parent
f02ab58e31
commit
56057690a5
9 files changed
+464
-24
No files matched your search
+3
-3
@@ -32,12 +32,12 @@
|
||||
#include <DHT_U.h>
|
||||
#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 TimeBetweenReading 30000
|
||||
DHT dht(D3,DHT22); //on nodeMCU this is D3 GPIO0
|
||||
DHT dht(DHT_RECEIVER_PIN,DHT22); // Defined in User_config.h
|
||||
|
||||
/*----------------------------USER PARAMETERS-----------------------------*/
|
||||
/*-------------DEFINE YOUR MQTT PARAMETERS BELOW----------------*/
|
||||
#define HUM1 "home/433toMQTT/dht1/hum"
|
||||
#define TEMP1 "home/433toMQTT/dht1/temp"
|
||||
#define HUM1 "home/DHTtoMQTT/dht1/hum"
|
||||
#define TEMP1 "home/DHTtoMQTT/dht1/temp"
|
||||
|
||||
//Time used to wait for an interval before resending temp and hum
|
||||
unsigned long timedht = 0;
|
||||
|
||||
Reference in new issue
Block a user