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?
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