user2947: I am looking to implement a Microchip MCP7940 real time clock into my sensor data logging circuit that I have based on the Uno. Would the most logical solution be to attempt at changing an existing library to work with this clock (ie RTClib), or to begin from scratch and do the configuration directly in my program?

user2947: In case anyone comes looking for an answer to this question, here is my solution:
I started with the excellent library by jeelabs (link: https://github.com/jcw/rtclib)
To create my new library, I changed a few of the register addresses, and added the few functions that I wanted it to do (set alarm, create an ordinal date, manually adjust the time with user input)
I posted my code to a Git project: https://github.com/crako1t/MCP7940-library-for-logger.git

2947: <p>I am looking to implement a Microchip MCP7940 real time clock into my sensor data logging circuit that I have based on the Uno. Would the most logical solution be to attempt at changing an existing library to work with this clock (ie <a href="https://github.com/jcw/rtclib" rel="nofollow">RTClib</a>), or to begin from scratch and do the configuration directly in my program?</p>
 2947: <p>In case anyone comes looking for an answer to this question, here is my solution:</p>

<p>I started with the excellent library by jeelabs (link: <a href="https://github.com/jcw/rtclib" rel="nofollow">https://github.com/jcw/rtclib</a>)</p>

<p>To create my new library, I changed a few of the register addresses, and added the few functions that I wanted it to do (set alarm, create an ordinal date, manually adjust the time with user input)</p>

<p>I posted my code to a Git project: <a href="https://github.com/crako1t/MCP7940-library-for-logger.git" rel="nofollow">https://github.com/crako1t/MCP7940-library-for-logger.git</a></p>
