Skip to content

Commit

Permalink
changed the defaults address for bme280 and sht31 sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Nov 28, 2021
1 parent af4e6d1 commit 4d3c6c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Sensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -995,12 +995,12 @@ void Sensors::am2320Init() {
void Sensors::sht31Init() {
DEBUG("-->[SLIB] SHT31 starting SHT31 sensor..");
sht31 = Adafruit_SHT31();
if (sht31.begin(0x44)) Serial.println("-->[SLIB] I2C detected SHT31 sensor :)");
if (sht31.begin()) Serial.println("-->[SLIB] I2C detected SHT31 sensor :)");
}

void Sensors::bme280Init() {
DEBUG("-->[SLIB] BME280 starting BME280 sensor..");
if (bme280.begin(0x76)) Serial.println("-->[SLIB] I2C detected BME280 sensor :)");
if (bme280.begin()) Serial.println("-->[SLIB] I2C detected BME280 sensor :)");
}

void Sensors::bmp280Init() {
Expand Down

0 comments on commit 4d3c6c4

Please sign in to comment.