summaryrefslogtreecommitdiff
path: root/esp/BH1750.ino
diff options
context:
space:
mode:
Diffstat (limited to 'esp/BH1750.ino')
-rw-r--r--esp/BH1750.ino21
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