Rtc ds3231

Did you try what Mr. @PeteKnight said ? A quick search in the forum gave me -

you can study the code and try to add the required bits n pieces to it like RTC etc…

You must take this seriously.