diff options
| author | Gustavoeklund01 <eklundgu@gmail.com> | 2025-10-27 19:15:23 -0300 |
|---|---|---|
| committer | Gustavoeklund01 <eklundgu@gmail.com> | 2025-10-27 19:15:23 -0300 |
| commit | 4008253dfd2005da102f6da06389268ecef152f6 (patch) | |
| tree | d8e7efa5262fcd212a0a30d647dcf12eb742fab2 /esp/BH1750.ino | |
| parent | f8b53f993ac61e470bcc1ee321c16a0657cf161d (diff) | |
conciliação dos sensores do esp32
Diffstat (limited to 'esp/BH1750.ino')
| -rw-r--r-- | esp/BH1750.ino | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/esp/BH1750.ino b/esp/BH1750.ino deleted file mode 100644 index 9d4f9c9..0000000 --- a/esp/BH1750.ino +++ /dev/null @@ -1,21 +0,0 @@ -#include <Wire.h> -#include <BH1750.h> - -BH1750 lightMeter; - -void setup(){ - Serial.begin(115200); - Wire.begin(21, 22); - lightMeter.begin(); - Serial.println("Teste sensor luminosidade"); -} -void loop(){ - float lux = - lightMeter.readLightLevel(); - - Serial.print("Luminosidade: "); - Serial.print(lux); - Serial.println(" lux"); - - delay(1000); -}
\ No newline at end of file |
