From 7ccab61c22fafb3bb9fa5470ff8cb46217111fe4 Mon Sep 17 00:00:00 2001 From: Gustavoeklund01 Date: Mon, 27 Oct 2025 20:28:29 -0300 Subject: outros códigos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- esp/src/bh1750.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'esp/src/bh1750.cpp') diff --git a/esp/src/bh1750.cpp b/esp/src/bh1750.cpp index e69de29..196705c 100644 --- a/esp/src/bh1750.cpp +++ b/esp/src/bh1750.cpp @@ -0,0 +1,13 @@ +#include +#include +#include "bh1750.h" + +BH1750 lightMeter; + +void setupBH1750() { + lightMeter.begin(); +} + +float lerBH1750() { + return lightMeter.readLightLevel(); +} -- cgit v1.2.3