37 void setup()
override;
38 void update()
override;
39 void dump_config()
override;
52 bool read_calibration_values_from_prom_();
55 void request_read_temperature_();
57 void read_temperature_();
59 void request_read_pressure_(uint32_t raw_temperature);
61 void read_pressure_(uint32_t raw_temperature);
63 void request_read_humidity_(
float temperature_float);
65 void read_humidity_(
float temperature_float);
67 void calculate_values_(uint32_t raw_temperature, uint32_t raw_pressure);
95 } calibration_values_;
const float DATA
For components that import data from directly connected sensors like DHT.
void set_humidity_device(MS8607HumidityDevice *humidity_device)
uint16_t pressure_sensitivity_temperature_coefficient
Temperature coefficient of pressure sensitivity | TCS. [C3].
Class for I2CDevice used to communicate with the Humidity sensor on the chip.
uint16_t temperature_coefficient_of_temperature
Temperature coefficient of the temperature | TEMPSENS. [C6].
This class simplifies creating components that periodically check a state.
void set_temperature_sensor(sensor::Sensor *temperature_sensor)
sensor::Sensor * pressure_sensor_
ErrorCode error_code_
Keep track of the reason why this component failed, to augment the dumped config. ...
uint16_t reference_temperature
Reference temperature | T-REF. [C5].
uint16_t pressure_sensitivity
Pressure sensitivity | SENS-T1. [C1].
This device's pressure & temperature calibration values, read from PROM.
uint16_t pressure_offset
Pressure offset | OFF-T1. [C2].
sensor::Sensor * temperature_sensor_
sensor::Sensor * humidity_sensor_
float get_setup_priority() const override
void set_pressure_sensor(sensor::Sensor *pressure_sensor)
uint8_t address_
store the address of the device on the bus
void set_humidity_sensor(sensor::Sensor *humidity_sensor)
SetupStatus setup_status_
Current step in the multi-step & possibly delayed setup() process.
uint16_t pressure_offset_temperature_coefficient
Temperature coefficient of pressure offset | TCO. [C4].
MS8607HumidityDevice * humidity_device_
I2CDevice object to communicate with secondary I2C address for the humidity sensor.
Implementation of SPI Controller mode.
Temperature, pressure, and humidity sensor.
Base-class for all sensors.
This Class provides the methods to read/write bytes from/to an i2c device.