Skip to content

Commit 6847614

Browse files
committed
Update Example3_Test_RTC.ino
1 parent 877ac2d commit 6847614

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/RTC/examples/Example3_Test_RTC/Example3_Test_RTC.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ void setup()
1515
{
1616
Serial.begin(115200);
1717
delay(10);
18-
Serial.println("Artemis RTC testing");
18+
Serial.println("Artemis RTC Testing");
1919

20-
//myRTC.setTime(hund, ss, mm, hh, dd, mm, yy);
21-
myRTC.setTime(0, 59, 59, 23, 1, 1, 20); // Manually set RTC to 1s before midnight
20+
// Manually set RTC date and time
21+
myRTC.setTime(0, 59, 59, 23, 1, 1, 20); // Set to 1 second before midnight
2222
}
2323

2424
void loop()
2525
{
2626
printArtemisTime();
2727

2828
myRTC.getTime();
29-
myRTC.setTime(99, 59, 59, 23, myRTC.dayOfMonth, myRTC.month, myRTC.year); //Manually set RTC
29+
myRTC.setTime(99, 59, 59, 23, myRTC.dayOfMonth, myRTC.month, myRTC.year); // Manually set RTC
3030
delay(11); //Allow us to roll from midnight the night before to the new day
3131
}
3232

0 commit comments

Comments
 (0)