This library is no longer maintained by me. Oliver Kraus is now maintaining this library. You’ll find it here:
http://code.google.com/p/ds1307new/The code has been moved to https://github.com/olikraus?tab=repositories.
The code is not working with Arduino IDE 1.0
I have rewritten the DS1307 library to use the 56 byte NV-RAM of the clock from scratch. This project is contributed by Oliver Kraus the developer of the dogm128 library.
The problem was, that the libraries in the wild, DS1307 and DS1307RTC, were not able to use the NV-RAM, but one of my projects, a weather station with BMP085 air-pressure and temperature sensor, must use the NV-RAM to store the last address +1 of written weather data into the EEPROM on the board. I had choosen this way to avoid defects with the EEPROM within the ATMEGA328 which has a limited lifetime.
My version of the library for the DS1307 RTC is called DS1307new to avoid confusion with the existing libraries.
The code has been moved to https://github.com/olikraus?tab=repositories.
RTC.startClock(); RTC.stopClock(); RTC.setTime(); RTC.getTime(); RTC.getCTRL(); RTC.setCTRL(); RTC.getRAM(rtc_addr, * rtc_ram, rtc_quantity); RTC.setRAM(rtc_addr, * rtc_ram, rtc_quantity); RTC.second; RTC.minute; RTC.hour; RTC.dow; RTC.day; //since v1.1 this parameter has been changed from RTC.date RTC.month; RTC.year; RTC.ctrl; RTC.ydn; // new since v1.1 RTC.cdn; // new since v1.1 RTC.time2000; // new since v1.1 RTC.fillByCDN; // new since v1.1 RTC.fillByTime2000; // new since v1.1 RTC.fillByHMS; // new since v1.1 RTC.fillByYMD; // new since v1.1 RTC.isMEZSummerTime; // new since v1.2
The code is published under the cc-by-sa-3.0 license!!