Hendrik Langer 5 years ago
parent
commit
f82470ad2f
  1. 15
      README.md
  2. 2
      src/main.cpp

15
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 | |

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

Loading…
Cancel
Save