elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elkscmd
/
sys_utils
/
ds3231.h
File editor
// High level DS3231 RTC driver // // 14. Nov. 2025 swausd #pragma once /* I2C address and registers to access DS3231 */ #define RTC_ADDRESS 0x68 // Slave address of ds3231 #define DS3231_READ ((RTC_ADDRESS << 1) | 0x01) // Read address for RTC #define DS3231_WRITE ((RTC_ADDRESS << 1) & 0xFE) // Write address for RTC #define REG_SEC 0x00 #define REG_MIN 0x01 #define REG_HOUR 0x02 #define REG_DAY 0x03 #define REG_DATE 0x04 #define REG_MONTH 0x05 #define REG_YEAR 0x06 #define REG_CNTRL 0x0E #define REG_STAT 0x0F void ds3231_init(void); unsigned int ds3231_read(unsigned int clock_reg); void ds3231_write(unsigned int clock_reg, unsigned int val);
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history