ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
dallas_temp.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::dallas_temp {
8
10 public:
11 void setup() override;
12 void update() override;
13 void dump_config() override;
14
17
18 protected:
19 uint8_t resolution_;
20 uint8_t scratch_pad_[9] = {0};
21
23 uint16_t millis_to_wait_for_conversion_() const;
24 bool read_scratch_pad_();
25 bool check_scratch_pad_();
26 float get_temp_c_();
27};
28
29} // namespace esphome::dallas_temp
This class simplifies creating components that periodically check a state.
Definition component.h:585
void set_resolution(uint8_t resolution)
Set the resolution for this sensor.
Definition dallas_temp.h:16
uint16_t millis_to_wait_for_conversion_() const
Get the number of milliseconds we have to wait for the conversion phase.
Base-class for all sensors.
Definition sensor.h:47
Resolution resolution
Definition msa3xx.h:1