5 namespace honeywellabp {
7 static const char *
const TAG =
"honeywellabp";
13 ESP_LOGD(TAG,
"Setting up Honeywell ABP Sensor ");
33 ESP_LOGV(TAG,
"Sensor status %d",
status_);
58 return ((((
float) counts - MIN_COUNT) * (max_pressure - min_pressure)) / (MAX_COUNT - MIN_COUNT)) + min_pressure;
74 ESP_LOGV(TAG,
"Update Honeywell ABP Sensor");
87 LOG_PIN(
" CS Pin: ", this->
cs_);
90 LOG_UPDATE_INTERVAL(
this);
float honeywellabp_max_pressure_
void set_honeywellabp_min_pressure(float min_pressure)
void dump_config() override
float countstotemperatures_(int counts)
void spi_setup() override
const float LATE
For components that should be initialized at the very end of the setup process.
void set_honeywellabp_max_pressure(float max_pressure)
sensor::Sensor * temperature_sensor_
float countstopressure_(int counts, float min_pressure, float max_pressure)
float honeywellabp_min_pressure_
sensor::Sensor * pressure_sensor_
void publish_state(float state)
Publish a new state to the front-end.
float read_temperature_()
float get_setup_priority() const override
Implementation of SPI Controller mode.