ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
esphome::ds3231 Namespace Reference

Data Structures

class  DS3231Component
 Hub for a single DS3231 real-time clock. More...
 
class  DS3231TemperatureSensor
 
class  DS3231Time
 

Enumerations

enum  AlarmMode : uint8_t {
  ALARM_MODE_EVERY_SECOND = 0 , ALARM_MODE_EVERY_MINUTE , ALARM_MODE_HOURLY , ALARM_MODE_DAILY ,
  ALARM_MODE_MONTHLY , ALARM_MODE_WEEKLY
}
 When an alarm fires. Alarm 1 supports every mode, alarm 2 has no seconds register and so no EVERY_SECOND. More...
 
enum  SquareWaveFrequency : uint8_t { SQUARE_WAVE_1HZ = 0 , SQUARE_WAVE_1024HZ = 1 , SQUARE_WAVE_4096HZ = 2 , SQUARE_WAVE_8192HZ = 3 }
 Frequency of the INT/SQW pin when it is a square-wave output (RS2:RS1 in the control register). More...
 

Functions

 ESPHOME_LOG_TAG (TAG, "ds3231")
 
 ESPHOME_LOG_TAG (TAG, "ds3231.sensor")
 
 ESPHOME_LOG_TAG (TAG, "ds3231.time")
 

Enumeration Type Documentation

◆ AlarmMode

When an alarm fires. Alarm 1 supports every mode, alarm 2 has no seconds register and so no EVERY_SECOND.

Enumerator
ALARM_MODE_EVERY_SECOND 

Alarm 1 only.

ALARM_MODE_EVERY_MINUTE 

Alarm 1: when the seconds match. Alarm 2: at second 00 of every minute.

ALARM_MODE_HOURLY 

When minutes (and seconds) match.

ALARM_MODE_DAILY 

When hours, minutes (and seconds) match.

ALARM_MODE_MONTHLY 

When date, hours, minutes (and seconds) match.

ALARM_MODE_WEEKLY 

When day of week, hours, minutes (and seconds) match.

Definition at line 16 of file ds3231.h.

◆ SquareWaveFrequency

Frequency of the INT/SQW pin when it is a square-wave output (RS2:RS1 in the control register).

Enumerator
SQUARE_WAVE_1HZ 
SQUARE_WAVE_1024HZ 
SQUARE_WAVE_4096HZ 
SQUARE_WAVE_8192HZ 

Definition at line 26 of file ds3231.h.

Function Documentation

◆ ESPHOME_LOG_TAG() [1/3]

esphome::ds3231::ESPHOME_LOG_TAG ( TAG ,
"ds3231"  )

◆ ESPHOME_LOG_TAG() [2/3]

esphome::ds3231::ESPHOME_LOG_TAG ( TAG ,
"ds3231.sensor"  )

◆ ESPHOME_LOG_TAG() [3/3]

esphome::ds3231::ESPHOME_LOG_TAG ( TAG ,
"ds3231.time"  )