For the NeoPixel clock project I am using an FTDI Friend to program the micro-controller and DS1307 clock module. Everything seems to get uploaded correctly when I follow the instructions here: https://learn.adafruit.com/ds1307-real- ... g-the-code to set the time. But when I check the time via the serial monitor in the Arduino IDE I get an incorrect time as in the attached screenshot:
My computer time is set correctly but it doesn't upload the correct time.
I also tried setting a time via the code as follows:
Code: Select all
rtc.adjust(DateTime(2014, 9, 4, 22, 12, 30));
When I set the date using the following code:
Code: Select all
rtc.adjust(DateTime(__DATE__, __TIME__));
2165/165/165 165:165:85
since midnight 1/1/1970 = 1418514385s = 16417d
now + 7d + 30s: 2014/12/20 23:46:55
but again the date on my mac is set to 2014/09/04 and the time is: 22:56:55
This is the base code I downloaded via the link on the DS1307 page.
What am I doing wrong?