/* Loop and print the time every second */
void loop()
{
print_time();
delay(1000);
}
//////////////////////////////////////////////////////////
Result
Open Arduino com port debugger, you can see current time. If the time needs adjustment, you
only need to input current date and time in the com port, and seperate with a comma.
Format as:
Year, month, day, minute, second, week
Week nomber: Sunday=1,MOnday=2,...Saturday=7
For example, the time now is 15:21:40, Thursday, August 20
Just full in 2015, 8, 20, 15, 21, 40, 5
*******************************************************************************
keyestudio
www.keyestudio.cc
th
, 2015,
149
Need help?
Do you have a question about the ARDUINO maker learning kit and is the answer not in the manual?