Hi,
Recently I’ve been searching library for DS3231 RTC. The problem is, all of it is designed for Arduino IDE before V1.0
So, in order to make it compatible:
In DS3231.h:
Change <Wprogram.h> to <Arduino.h>
In DS3231.cpp:
Replace all “Wire.send” with “Wire.write”.
Replace all “Wire.receive” with “Wire.read”.
After that the DS3231_test example compiles without error.
*Based on Eric Ayers DS3231 library