11 ESP_LOGCONFIG(TAG,
"LM75B:");
13 LOG_UPDATE_INTERVAL(
this);
14 LOG_SENSOR(
" ",
"Temperature",
this);
27 raw_temperature >>= 5;
void status_set_warning()
bool status_has_warning() const
void status_clear_warning()
ErrorCode read_register(uint8_t a_register, uint8_t *data, size_t len)
reads an array of bytes from a specific register in the I²C device
void dump_config() override
void publish_state(float state)
Publish a new state to the front-end.
@ ERROR_OK
No error found during execution of method.
ESPHOME_LOG_TAG(TAG, "lm75b")
constexpr T encode_value(const uint8_t *bytes)
Encode a value from its constituent bytes (from most to least significant) in an array with length si...