BME280 Environmental Sensor
The basic flows to read BME280 data are:
Step1: Initialize for OS and peripheral
Step2: Realize Read, Write and Delay functions (I2C and SPI), and assignment the
functions pointer to
bme280_dev
structure as publics, then transfer the pointer of
structure to initialization function
int8_t bme280_init(struct bme280_dev *dev)
.
Initialize BME280 device.
Step3: Calling
int8_t stream_sensor_data_forced_mode(struct bme280_dev *dev)
or
int8_t stream_sensor_data_normal_mode(struct bme280_dev *dev)
to get data of
BME280 sensor and print them to console or PC.