add i2c address

This commit is contained in:
Harald Pichler 2017-02-23 08:59:49 +01:00
parent 42dee52e65
commit 85f3814f67

View file

@ -46,7 +46,7 @@ void setup (void)
bool status;
// default settings
status = bme.begin();
status = bme.begin(0x77);
if (!status) {
printf("Could not find a valid BME280 sensor, check wiring!");
}
@ -95,9 +95,9 @@ void loop (void)
}
// Debug Print
printf("Temp: %s",bmptemp_s);
printf("\t\tPress: %s\n",bmppress_s);
printf("\t\tAltitude: %s\n",bmpalt_s);
printf("\t\tatm: %s\n",bmpatm_s);
printf("\t\thum: %s\n",bmphum_s);
printf("Temp: %s\n",bmptemp_s);
printf("Press: %s\n",bmppress_s);
printf("Altitude: %s\n",bmpalt_s);
printf("atm: %s\n",bmpatm_s);
printf("hum: %s\n",bmphum_s);
}