ESPHome 2025.5.0
Loading...
Searching...
No Matches
dallas_temp.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace dallas_temp {
9
11 public:
12 void setup() override;
13 void update() override;
14 void dump_config() override;
15
18
19 protected:
20 uint8_t resolution_;
21 uint8_t scratch_pad_[9] = {0};
22
24 uint16_t millis_to_wait_for_conversion_() const;
25 bool read_scratch_pad_();
26 bool check_scratch_pad_();
27 float get_temp_c_();
28};
29
30} // namespace dallas_temp
31} // namespace esphome
This class simplifies creating components that periodically check a state.
Definition component.h:301
void set_resolution(uint8_t resolution)
Set the resolution for this sensor.
Definition dallas_temp.h:17
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:57
Resolution resolution
Definition msa3xx.h:1
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7