add i2c address
This commit is contained in:
parent
42dee52e65
commit
85f3814f67
|
@ -46,7 +46,7 @@ void setup (void)
|
||||||
bool status;
|
bool status;
|
||||||
|
|
||||||
// default settings
|
// default settings
|
||||||
status = bme.begin();
|
status = bme.begin(0x77);
|
||||||
if (!status) {
|
if (!status) {
|
||||||
printf("Could not find a valid BME280 sensor, check wiring!");
|
printf("Could not find a valid BME280 sensor, check wiring!");
|
||||||
}
|
}
|
||||||
|
@ -95,9 +95,9 @@ void loop (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Debug Print
|
// Debug Print
|
||||||
printf("Temp: %s",bmptemp_s);
|
printf("Temp: %s\n",bmptemp_s);
|
||||||
printf("\t\tPress: %s\n",bmppress_s);
|
printf("Press: %s\n",bmppress_s);
|
||||||
printf("\t\tAltitude: %s\n",bmpalt_s);
|
printf("Altitude: %s\n",bmpalt_s);
|
||||||
printf("\t\tatm: %s\n",bmpatm_s);
|
printf("atm: %s\n",bmpatm_s);
|
||||||
printf("\t\thum: %s\n",bmphum_s);
|
printf("hum: %s\n",bmphum_s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue