diff --git a/examples/ds3231/ds3231.ino b/examples/ds3231/ds3231.ino index 4bbf062d..bec91d13 100644 --- a/examples/ds3231/ds3231.ino +++ b/examples/ds3231/ds3231.ino @@ -22,12 +22,19 @@ void setup () { if (rtc.lostPower()) { Serial.println("RTC lost power, lets set the time!"); - // following line sets the RTC to the date & time this sketch was compiled + // If the RTC have lost power it will sets the RTC to the date & time this sketch was compiled in the following line rtc.adjust(DateTime(F(__DATE__), F(__TIME__))); // This line sets the RTC with an explicit date & time, for example to set // January 21, 2014 at 3am you would call: // rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0)); } + + // If you need to set the time of the uncomment line 34 or 37 + // following line sets the RTC to the date & time this sketch was compiled + // rtc.adjust(DateTime(F(__DATE__), F(__TIME__))); + // This line sets the RTC with an explicit date & time, for example to set + // January 21, 2014 at 3am you would call: + // rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0)); } void loop () {