Files
WLED_MM_Infinity/usermods/RTC
Frank 39ad4955b7 Adjust some usermods to use global I2C
* usermods only need to to `if (!pinManager.joinWire()) return;`

* joinWire will
* * check if global I2C are defined - return false if not defined
* * aloocate HW_I2C pins - return false on error
* * call Wire.begin() if needed.
2023-01-08 21:11:50 +01:00
..
2022-12-10 16:12:55 +01:00

DS1307/DS3231 Real time clock

Gets the time from I2C RTC module on boot. This allows clock operation if WiFi is not available. The stored time is updated each time NTP is synced.

Installation

Add the build flag -D USERMOD_RTC to your platformio environment.