diff options
Diffstat (limited to 'esp/src/bh1750.cpp')
| -rw-r--r-- | esp/src/bh1750.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/esp/src/bh1750.cpp b/esp/src/bh1750.cpp new file mode 100644 index 0000000..196705c --- /dev/null +++ b/esp/src/bh1750.cpp @@ -0,0 +1,13 @@ +#include <Wire.h> +#include <BH1750.h> +#include "bh1750.h" + +BH1750 lightMeter; + +void setupBH1750() { + lightMeter.begin(); +} + +float lerBH1750() { + return lightMeter.readLightLevel(); +} |
