RTC DS1307 is resetting to compile time value after clicking Reset button. please suggest me scheme so it wont get set to compile time again and again.
Remove the line from the sketch that tells it to do that. It probably contains 'DateTime(DATE, TIME)' or similar.
I want to set RTC for once after that , there should not be any requirement to set RTC. If i remove that line then it gives me compile error.
koustubhavachat:
I want to set RTC for once after that , there should not be any requirement to set RTC.
So you run it once with that line in, then upload the sketch without that line.
koustubhavachat:
If i remove that line then it gives me compile error.
But you aren't going to tell us what the error is.
But you aren't going to tell us what the error is.
Or what the test of the code looks like.