11static constexpr uint8_t DS3231_REG_CONTROL = 0x0E;
12static constexpr uint8_t DS3231_REG_TEMPERATURE = 0x11;
30 ESP_LOGCONFIG(TAG,
"DS3231:");
40 int16_t value =
static_cast<int16_t
>((
raw[0] << 8) |
raw[1]) >> 6;
52 ESP_LOGW(TAG,
"A temperature conversion is already in progress.");
62 ESP_LOGW(TAG,
"Can't read control/status registers.");
72 ESP_LOGW(TAG,
"Can't write control register.");
void mark_failed()
Mark this component as failed.
void dump_config() override
static constexpr uint8_t CONTROL_INTCN
bool read_temperature(float &out)
static constexpr uint8_t STATUS_BSY
bool read_control_status_()
static constexpr uint8_t CONTROL_CONV
void force_temperature_conversion()
bool write_byte(uint8_t a_register, uint8_t data) const
bool read_bytes(uint8_t a_register, uint8_t *data, uint8_t len)
Compat APIs All methods below have been added for compatibility reasons.
std::vector< uint8_t > & out
ESPHOME_LOG_TAG(TAG, "ds3231")