#include <Wire.h>
#include <DS3231.h>
DS3231 rtc(SDA, SCL);
void setup() {
Serial.begin(9600);
Wire.begin(4,5);
rtc.begin();
Serial.print(rtc.getDateStr());
Serial.print(" -- ");
Serial.println(rtc.getTimeStr());
Serial.println(" ");
}
void loop() {
String dataString = String(rtc.getDateStr())+" "+String(rtc.getTimeStr())+"\t";
}
This is a piece of my code and the error that I get is the following: no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'
Thanks in advance.