![]() ![]() ![]() I highly recommend using the DS3231 (or DS3232) instead of the DS1307. This library will default to I 2C Fast Mode (400 KHz) when using the hardware I 2C interface. Remember to use proper level shifters for the SDA and SCL lines if you are using a development board running at 3.3 volts. If you experience issues communicating with the DS1307 the first thing you should do is make sure it is running at 5 volts. The DS1307 is a 5 volt device and operating it at 3.3 volt may cause issues. Modified setDOW() to calculate DOW from RTC date if desiredįixed a bug that made the library freeze when using D0 for SDAįixed a bug in getMonthStr() and getDOWStr()įor a full list of changes please see the file version.txt included in the download. This is a multi-platform library that will work with several different development board types.Īdded support for Arduino Due, Arduino Leonardo, Bobuino and chipKitĪdded support for hardware I2C (all platforms) Downloaded 57254 times)Ī few demos are included to demonstrate most of the functions. This library will in this case fall back to a software-based, TWI-/I 2C-like protocol which will require exclusive access to the pins used. If you experience problems with pin-sharing you can move the DS1307 SDA and SCL pins to any available pins on your development board. The library has not been tested in combination with the Wire library and I have no idea if they can share pins. ![]() Timekeeping operation continues while the part operates from the backup supply. The DS1307 has a built-in power-sense circuit that detects power failures and automatically switches to the backup supply. The clock operates in either the 24-hour or 12-hour format with AM/PM indicator, but the library only supports the 24-hour mode. The end of the month date is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock/calendar provides seconds, minutes, hours, day, date, month, and year information. Address and data are transferred serially through an I☬, bidirectional bus. The DS1307 serial real-time clock (RTC) is a low-power, full binary-coded decimal (BCD) clock/calendar plus 56 bytes of NV SRAM. This library was made because I wanted an easy way to interface and use the DS1307 I☬ Real-Time Clock without the need for the Wire library. Rather donate hardware directly? Then click here. And use any of my projects or libraries, and would like to encourage further development you can donate through PayPal here: ![]()
0 Comments
Leave a Reply. |