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
+14
-1
@@ -17,6 +17,7 @@
|
||||
- 1technophile
|
||||
- crankyoldgit
|
||||
- glasruit
|
||||
- HannesDi
|
||||
- Spudtater
|
||||
- prahjister
|
||||
- rickybrent
|
||||
@@ -160,6 +161,12 @@ void setup()
|
||||
|
||||
lastReconnectAttempt = 0;
|
||||
|
||||
#ifdef ZsensorBME280
|
||||
setupZsensorBME280();
|
||||
#endif
|
||||
#ifdef ZsensorBH1750
|
||||
setupZsensorBH1750();
|
||||
#endif
|
||||
#ifdef ZgatewayIR
|
||||
setupIR();
|
||||
#endif
|
||||
@@ -223,7 +230,13 @@ void loop()
|
||||
#ifdef ESP8266
|
||||
ArduinoOTA.handle();
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef ZsensorBME280
|
||||
MeasureTempHumAndPressure(); //Addon to measure Temperature, Humidity, Pressure and Altitude with a Bosch BME280
|
||||
#endif
|
||||
#ifdef ZsensorBH1750
|
||||
MeasureLightIntensity(); //Addon to measure Light Intensity with a BH1750
|
||||
#endif
|
||||
#ifdef ZsensorDHT
|
||||
MeasureTempAndHum(); //Addon to measure the temperature with a DHT
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user