From f82470ad2f1ac3ce50bb70dec705ae17d0323798 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Wed, 31 Jul 2019 18:11:12 +0200 Subject: [PATCH] GY-302 --- README.md | 15 +++++++++------ src/main.cpp | 2 ++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5ec9c82..5cc7a26 100644 --- a/README.md +++ b/README.md @@ -36,23 +36,26 @@ SDA | IO21 | SDO | nc | SPI only CS | nc | SPI only -### BH1750 (GY-30) +### BH1750 (GY-302) I2C -GY-30 pin | ESP32 pin | Notes +GY-302 pin | ESP32 pin | Notes -----------|-----------|---------- +VCC | | GND | | -AD0 | nc | -SDA | IO21 | SCL | IO22 | -VCC | | +SDA | IO21 | +ADDR | nc | select addr: GND: 0x23 or VCC: 0x5C + + + ### VEML6075 I2C -GY-30 pin | ESP32 pin | Notes +GY-VEML6075 pin | ESP32 pin | Notes -----------|-----------|---------- VIN | | GND | | diff --git a/src/main.cpp b/src/main.cpp index 5f51e88..d4580ff 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -536,6 +536,8 @@ void setup() if (lightMeter.begin()) { light_active = true; + } else { + Serial.println("Failed to communicate with BH1750 sensor, check wiring?"); } sds.begin();