12 SUB_SENSOR(raw_pressure)
15 void setup()
override;
16 void dump_config()
override;
17 void update()
override;
virtual void setup()
Where the component's initialization should happen.
This class simplifies creating components that periodically check a state.
This Class provides the methods to read/write bytes from/to an i2c device.
This class implements support for the npi19 pressure and temperature i2c sensors.
i2c::ErrorCode read_(uint16_t &raw_temperature, uint16_t &raw_pressure)
ErrorCode
Error codes returned by I2CBus and I2CDevice methods.