Open AmitShekhar96 opened 2 years ago
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Arduino Uno"
sketch_jul21a:16:21: error: no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'
DS3231 rtc(SDA, SCL);
^
In file included from C:\Users\Dell\Documents\Arduino\sketch_jul21a\sketch_jul21a.ino:1:0:
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:67:3: note: candidate: DS3231::DS3231(TwoWire&)
DS3231(TwoWire & w);
^~
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:67:3: note: candidate expects 1 argument, 2 provided
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:66:3: note: candidate: DS3231::DS3231()
DS3231();
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:66:3: note: candidate expects 0 arguments, 2 provided
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:62:7: note: candidate: constexpr DS3231::DS3231(const DS3231&)
class DS3231 {
^~~~~~
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:62:7: note: candidate expects 1 argument, 2 provided
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:62:7: note: candidate: constexpr DS3231::DS3231(DS3231&&)
sketch_jul21a:19:1: error: 'Time' does not name a type; did you mean 'time'?
Time t; //pencacah string time()
^~~~
time
C:\Users\Dell\Documents\Arduino\sketch_jul21a\sketch_jul21a.ino: In function 'void setup()':
sketch_jul21a:57:7: error: 'class DS3231' has no member named 'begin'
rtc.begin(); // memulai koneksi i2c dengan RTC
^~~~~
C:\Users\Dell\Documents\Arduino\sketch_jul21a\sketch_jul21a.ino: In function 'void loop()':
sketch_jul21a:93:1: error: 't' was not declared in this scope
t = rtc.getTime();
C:\Users\Dell\Documents\Arduino\sketch_jul21a\sketch_jul21a.ino:93:1: note: suggested alternative: 'tm'
tm
sketch_jul21a:93:9: error: 'class DS3231' has no member named 'getTime'; did you mean 'getA1Time'?
^~~~~~~ getA1Time
sketch_jul21a:94:11: error: 'class DS3231' has no member named 'getDOWStr'; did you mean 'getDoW'?
Day = rtc.getDOWStr(1);
^~~~~~~~~ getDoW
sketch_jul21a:120:17: error: 'class DS3231' has no member named 'getTemp'; did you mean 'getYear'?
lcd.print(rtc.getTemp(),0);
^~~~~~~ getYear
C:\Users\Dell\Documents\Arduino\sketch_jul21a\sketch_jul21a.ino: In function 'void setupClock()':
sketch_jul21a:182:9: error: 'class DS3231' has no member named 'setTime'; did you mean 'setA1Time'?
rtc.setTime (hh, mm, ss); ^~~~~~~ setA1Time
sketch_jul21a:183:28: error: no matching function for call to 'DS3231::setDate(int&, int&, int&)'
rtc.setDate (dd, bb, yy); ^
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:103:8: note: candidate: void DS3231::setDate(byte)
void setDate(byte Date);
^~~~~~~
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:103:8: note: candidate expects 1 argument, 3 provided
sketch_jul21a:235:5: error: 'class DS3231' has no member named 'setDOW'; did you mean 'setDoW'?
rtc.setDOW(set_day);
^~~~~~ setDoW
sketch_jul21a:258:5: error: 'class DS3231' has no member named 'setDOW'; did you mean 'setDoW'?
exit status 1
no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'
This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
same error
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Arduino Uno"
sketch_jul21a:16:21: error: no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'
DS3231 rtc(SDA, SCL);
In file included from C:\Users\Dell\Documents\Arduino\sketch_jul21a\sketch_jul21a.ino:1:0:
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:67:3: note: candidate: DS3231::DS3231(TwoWire&)
DS3231(TwoWire & w);
^
~C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:67:3: note: candidate expects 1 argument, 2 provided
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:66:3: note: candidate: DS3231::DS3231()
DS3231();
^
~C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:66:3: note: candidate expects 0 arguments, 2 provided
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:62:7: note: candidate: constexpr DS3231::DS3231(const DS3231&)
class DS3231 {
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:62:7: note: candidate expects 1 argument, 2 provided
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:62:7: note: candidate: constexpr DS3231::DS3231(DS3231&&)
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:62:7: note: candidate expects 1 argument, 2 provided
sketch_jul21a:19:1: error: 'Time' does not name a type; did you mean 'time'?
Time t; //pencacah string time()
^~~~
time
C:\Users\Dell\Documents\Arduino\sketch_jul21a\sketch_jul21a.ino: In function 'void setup()':
sketch_jul21a:57:7: error: 'class DS3231' has no member named 'begin'
rtc.begin(); // memulai koneksi i2c dengan RTC
C:\Users\Dell\Documents\Arduino\sketch_jul21a\sketch_jul21a.ino: In function 'void loop()':
sketch_jul21a:93:1: error: 't' was not declared in this scope
t = rtc.getTime();
^
C:\Users\Dell\Documents\Arduino\sketch_jul21a\sketch_jul21a.ino:93:1: note: suggested alternative: 'tm'
t = rtc.getTime();
^
tm
sketch_jul21a:93:9: error: 'class DS3231' has no member named 'getTime'; did you mean 'getA1Time'?
t = rtc.getTime();
sketch_jul21a:94:11: error: 'class DS3231' has no member named 'getDOWStr'; did you mean 'getDoW'?
Day = rtc.getDOWStr(1);
sketch_jul21a:120:17: error: 'class DS3231' has no member named 'getTemp'; did you mean 'getYear'?
lcd.print(rtc.getTemp(),0);
C:\Users\Dell\Documents\Arduino\sketch_jul21a\sketch_jul21a.ino: In function 'void setupClock()':
sketch_jul21a:182:9: error: 'class DS3231' has no member named 'setTime'; did you mean 'setA1Time'?
sketch_jul21a:183:28: error: no matching function for call to 'DS3231::setDate(int&, int&, int&)'
In file included from C:\Users\Dell\Documents\Arduino\sketch_jul21a\sketch_jul21a.ino:1:0:
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:103:8: note: candidate: void DS3231::setDate(byte)
void setDate(byte Date);
C:\Users\Dell\Documents\Arduino\libraries\DS3231/DS3231.h:103:8: note: candidate expects 1 argument, 3 provided
sketch_jul21a:235:5: error: 'class DS3231' has no member named 'setDOW'; did you mean 'setDoW'?
rtc.setDOW(set_day);
sketch_jul21a:258:5: error: 'class DS3231' has no member named 'setDOW'; did you mean 'setDoW'?
rtc.setDOW(set_day);
exit status 1
no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'
This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.