You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README
+7-7
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# bme280
2
-
Using BME280 sensor from Bosch at AVR mikrocontrollers like Atmega328p
2
+
Using BME/BMP280 sensor from Bosch at AVR mikrocontrollers like Atmega328p
3
3
4
-
This Library allowed you to use BME280 to sense temperature, pressure and humidity with AVR microcontroller like Atmega328.
5
-
For communication with the BME280 I'll use my own I2C library (settings for I2C in i2c.h).
4
+
This Library allowed you to use up to two BME/BMP280 to sense temperature, pressure and humidity (only with BME280) with AVR microcontroller like Atmega328.
5
+
For communication with the BME/BMP280 I'll use my own I2C library (settings for I2C in i2c.h).
6
6
7
-
Default settings for sensor are:
7
+
Default settings for sensors are:
8
8
9
9
standby-time: 250 ms
10
10
iir-filter: 8x
@@ -31,9 +31,9 @@ int main(void){
31
31
// init sensor
32
32
bme280_init();
33
33
// read values
34
-
temperature = bme280_readTemperature(); // in °C
35
-
pressure = bme280_readPressure()/100.0; // in mbar
36
-
humidity = bme280_readHumidity(); // in %
34
+
temperature = bme280_readTemperature(0); // in °C
35
+
pressure = bme280_readPressure(0)/100.0; // in mbar
0 commit comments