Skip to content

Commit

Permalink
Update bbn_m5atomS3_lite_env.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Nov 6, 2024
1 parent 97969e8 commit 94a1ecc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bbn_m5atomS3_lite_env/bbn_m5atomS3_lite_env.ino
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ void setup() {
Serial.begin(4800);

if (!dht.begin(&Wire, DHT12_I2C_ADDR, G2, G1, 100000U)) {
Serial.println("Couldn't find DHT12");
while (1) delay(1);
gen_nmea0183_msg("$BBTXT,01,01,01,Sensor not found type=%s", "DHT12");
}

if (!bmp.begin(&Wire, BMP280_I2C_ADDR, G2, G1, 100000U)) {
Serial.println("Couldn't find BMP280");
while (1) delay(1);
gen_nmea0183_msg("$BBTXT,01,01,01,Sensor not found type=%s", "BMP280");
}

/* Default settings from datasheet. */
Expand Down

0 comments on commit 94a1ecc

Please sign in to comment.