B4R Code Snippet A small sketch to read and write DS1307 RTC

Hi Everybody,
this is a small sample to read and write date and time to DS1307. The single fields for time and date are defined in the B4R part.
For this you need to download new libraries called Time and DS1307rtc in Arduino environment. The ones downloaded with Arduino are old.
I have put integer constants to initialize the time and date fields. You can chose to get a string via serial interface and extract the values to init the device.
Have fun.



  • testds3107.zip
    1.5 KB · Views: 373