Skip to content

no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)' #31

@emp-98

Description

@emp-98

#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions