Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch committed Dec 12, 2024
1 parent 8417db3 commit 34d608b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bbn_esp32_sensors_hub.ino
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ReactESP app;
void setup() {
auto cfg = M5.config();
AtomS3.begin(cfg);
Wire.begin();
Wire.begin(G2, G1, 400000U);
Serial.begin(115200);
i2c_sensors_scan();
}
Expand Down
2 changes: 1 addition & 1 deletion i2c_sht30.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void i2c_sht30_report() {

void i2c_sht30_try_init() {
for (int i = 0; i < 3; i++) {
i2c_sht30_found = i2c_sht30_sensor.begin(&Wire, SHT3X_I2C_ADDR, G2, G1, 100000U);
i2c_sht30_found = Units.add(i2c_sht30_sensor, Wire) && i2c_sht30_sensor.begin();
if (i2c_sht30_found) {
break;
}
Expand Down

0 comments on commit 34d608b

Please sign in to comment.