aaa:14: error: no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'
DS3231 rtc(SDA, SCL);
^
D:\Downloads\aaa\aaa.ino:14:21: note: candidates are:
In file included from D:\Downloads\aaa\aaa.ino:7:0:
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:64:3: note: DS3231::DS3231()
DS3231();
^
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:64:3: note: candidate expects 0 arguments, 2 provided
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: constexpr DS3231::DS3231(const DS3231&)
class DS3231 {
^
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: candidate expects 1 argument, 2 provided
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: constexpr DS3231::DS3231(DS3231&&)
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: candidate expects 1 argument, 2 provided
aaa:16: error: 'Time' does not name a type
Time t;
^
D:\Downloads\aaa\aaa.ino: In function 'void setup()':
aaa:49: error: 'class DS3231' has no member named 'begin'
rtc.begin();
^
D:\Downloads\aaa\aaa.ino: In function 'void InitialiseClock()':
aaa:63: error: 'class DS3231' has no member named 'setTime'
rtc.setTime(h, m, s);
^
aaa:64: error: no matching function for call to 'DS3231::setDate(int&, int&, int&)'
rtc.setDate(Day, Month, Year); //
^
D:\Downloads\aaa\aaa.ino:64:31: note: candidate is:
In file included from D:\Downloads\aaa\aaa.ino:7:0:
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:94:8: note: void DS3231::setDate(byte)
void setDate(byte Date);
^
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:94:8: note: candidate expects 1 argument, 3 provided
D:\Downloads\aaa\aaa.ino: In function 'void loop()':
D:\Downloads\aaa\aaa.ino:78:24: warning: NULL used in arithmetic [-Wpointer-arith]
if (!Time_Water_h == NULL || !Interval == NULL || !Water_howlong == NULL )
^
D:\Downloads\aaa\aaa.ino:78:45: warning: NULL used in arithmetic [-Wpointer-arith]
if (!Time_Water_h == NULL || !Interval == NULL || !Water_howlong == NULL )
^
D:\Downloads\aaa\aaa.ino:78:71: warning: NULL used in arithmetic [-Wpointer-arith]
if (!Time_Water_h == NULL || !Interval == NULL || !Water_howlong == NULL )
^
aaa:126: error: 'class DS3231' has no member named 'getTimeStr'
lcd.print(rtc.getTimeStr());
^
aaa:129: error: 'class DS3231' has no member named 'getDateStr'
lcd.print(rtc.getDateStr());
^
D:\Downloads\aaa\aaa.ino: In function 'void SetDate()':
aaa:193: error: no matching function for call to 'DS3231::setDate(int&, int&, int&)'
rtc.setDate(Day, Month, Year);
^
D:\Downloads\aaa\aaa.ino:193:32: note: candidate is:
In file included from D:\Downloads\aaa\aaa.ino:7:0:
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:94:8: note: void DS3231::setDate(byte)
void setDate(byte Date);
^
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:94:8: note: candidate expects 1 argument, 3 provided
aaa:202: error: 'class DS3231' has no member named 'getDateStr'
lcd.print(rtc.getDateStr(FORMAT_SHORT));
^
aaa:202: error: 'FORMAT_SHORT' was not declared in this scope
lcd.print(rtc.getDateStr(FORMAT_SHORT));
^
aaa:222: error: no matching function for call to 'DS3231::setDate(int&, int&, int&)'
rtc.setDate(Day, Month, Year);
^
D:\Downloads\aaa\aaa.ino:222:33: note: candidate is:
In file included from D:\Downloads\aaa\aaa.ino:7:0:
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:94:8: note: void DS3231::setDate(byte)
void setDate(byte Date);
^
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:94:8: note: candidate expects 1 argument, 3 provided
aaa:235: error: 'class DS3231' has no member named 'getDateStr'
lcd.print(rtc.getDateStr(FORMAT_SHORT));
^
aaa:235: error: 'FORMAT_SHORT' was not declared in this scope
lcd.print(rtc.getDateStr(FORMAT_SHORT));
^
aaa:255: error: no matching function for call to 'DS3231::setDate(int&, int&, int&)'
rtc.setDate(Day, Month, Year);
^
D:\Downloads\aaa\aaa.ino:255:32: note: candidate is:
In file included from D:\Downloads\aaa\aaa.ino:7:0:
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:94:8: note: void DS3231::setDate(byte)
void setDate(byte Date);
^
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:94:8: note: candidate expects 1 argument, 3 provided
aaa:268: error: 'class DS3231' has no member named 'getDateStr'
lcd.print(rtc.getDateStr(FORMAT_SHORT));
^
aaa:268: error: 'FORMAT_SHORT' was not declared in this scope
lcd.print(rtc.getDateStr(FORMAT_SHORT));
^
aaa:284: error: no matching function for call to 'DS3231::setDate(int&, int&, int&)'
rtc.setDate(Day, Month, Year);
^
D:\Downloads\aaa\aaa.ino:284:35: note: candidate is:
In file included from D:\Downloads\aaa\aaa.ino:7:0:
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:94:8: note: void DS3231::setDate(byte)
void setDate(byte Date);
^
C:\Users\hikar\OneDrive\Documents\Arduino\libraries\DS3231/DS3231.h:94:8: note: candidate expects 1 argument, 3 provided
aaa:296: error: 'class DS3231' has no member named 'getTimeStr'
lcd.print(rtc.getTimeStr());
^
aaa:330: error: 'class DS3231' has no member named 'getTimeStr'
lcd.print(rtc.getTimeStr());
^
exit status 1
no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'
I'm a beginner and i'm stuck , how can I fix this?