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();