45 printf(
"Pressure: %d.%d Pa\tTemperature: %d.%d K, i2c_errors: %d\n",
47 (int32_t)
abs(pressure*1000) % 1000,
48 (int32_t) temperature,
49 (int32_t)
abs(temperature*1000) % 1000,
56 printf(
"bmp280 unavailable\n");
uint16_t i2cGetErrorCounter(void)
void i2cInit(I2CDevice index)
bool i2cWrite(uint8_t addr_, uint8_t reg_, uint8_t data)
void bmp280_async_read(float *pres, float *temp)
void bmp280_async_update()
static double abs(double a)