7 static const char *
const TAG =
"adc.common";
10 float value_v = this->
sample();
11 ESP_LOGV(TAG,
"'%s': Got voltage=%.4fV", this->
get_name().c_str(), value_v);
16 if (sample_count != 0) {
const float DATA
For components that import data from directly connected sensors like DHT.
void set_sample_count(uint8_t sample_count)
void publish_state(float state)
Publish a new state to the front-end.
void update() override
Update ADC values.
Implementation of SPI Controller mode.
float get_setup_priority() const override
HARDWARE_LATE setup priority
const StringRef & get_name() const