B4R Question DS1302 or DS1307

Mostez

Well-Known Member
Licensed User
Longtime User
Hello,
I need RTC device for Arduino project, I use Ethernet shield with on board micro SD slolt. which one is convenient for use without conflicts DS1302 or DS1307? if i have to use DS1307, is there a similar library for DS1307 like this one? or code set and get time in BCD and convert it to readable format.

Thanks
 

inakigarm

Well-Known Member
Licensed User
Longtime User
Look at this example (B4R code to read/set time on DS3231 RTC without library and B4J to read/set time set by user)

DectoBCD subroutine included (For BCDtodec see Timer1 code)
 
Upvote 0
Top