EasyManua.ls Logo

Waveshare BME280 - BASIC DATA READING FLOW; Step 1: Initialize OS and Peripherals; Step 2: Implement Communication Functions; Step 3: Obtain and Display Sensor Data

Default Icon
16 pages
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.

Related product manuals