[TEMT] Added Temt6000 light sensor using a d1 mini (#1550)
Added light sensor TEMPT6000
This commit is contained in:
1 parent
c12f51ee0e
commit
7bae999435
8 files changed
+175
-4
No files matched your search
@@ -109,6 +109,9 @@ struct GfSun2000Data {};
|
||||
#ifdef ZsensorBH1750
|
||||
# include "config_BH1750.h"
|
||||
#endif
|
||||
#ifdef ZsensorTEMT6000
|
||||
# include "config_TEMT6000.h"
|
||||
#endif
|
||||
#ifdef ZsensorTSL2561
|
||||
# include "config_TSL2561.h"
|
||||
#endif
|
||||
@@ -872,6 +875,10 @@ void setup() {
|
||||
setupZsensorBH1750();
|
||||
modules.add(ZsensorBH1750);
|
||||
#endif
|
||||
#ifdef ZsensorTEMT6000
|
||||
setupZsensorTEMT6000();
|
||||
modules.add(ZsensorTEMT6000);
|
||||
#endif
|
||||
#ifdef ZsensorTSL2561
|
||||
setupZsensorTSL2561();
|
||||
modules.add(ZsensorTSL2561);
|
||||
@@ -1638,6 +1645,9 @@ void loop() {
|
||||
#ifdef ZsensorBH1750
|
||||
MeasureLightIntensity(); //Addon to measure Light Intensity with a BH1750
|
||||
#endif
|
||||
#ifdef ZsensorTEMT6000
|
||||
MeasureLightIntensityTEMT6000();
|
||||
#endif
|
||||
#ifdef ZsensorTSL2561
|
||||
MeasureLightIntensityTSL2561();
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user