read raw bme280 values
This commit is contained in:
parent
f7da5a3712
commit
6f8d2b8814
3 changed files with 43 additions and 3 deletions
8
bme280.h
8
bme280.h
|
|
@ -31,6 +31,14 @@ typedef struct {
|
|||
bme280_compensation_params params;
|
||||
} bme280_config;
|
||||
|
||||
typedef struct {
|
||||
int32_t temperature;
|
||||
int32_t pressure;
|
||||
int32_t humidity;
|
||||
} bme280_reading;
|
||||
|
||||
void bme280_init(bme280_config *config, i2c_inst_t *i2c,
|
||||
uint8_t sda_pin, uint8_t scl_pin);
|
||||
|
||||
bme280_reading bme280_read(bme280_config *config);
|
||||
#endif /* BME280_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue