Hi new to Arduino and this forum. I'm getting an error message of expected unqualified-id before '.' token.
Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: "Arduino/Genuino Uno"
C:\Users\Craig Boucher\Documents\Arduino\arduino-timer-relay\arduino-timer-relay.ino:432:3: warning: character constant too long for its type
'RTC_DS1307'.setDS1302Time(00, MinNew, HourNew, 6, 10, 1, 2014);
^
C:\Users\Craig Boucher\Documents\Arduino\arduino-timer-relay\arduino-timer-relay.ino: In function 'void relayAction(int, int, int, int)':
arduino-timer-relay:138:13: error: expected unqualified-id before '.' token
RTC_DS1307.updateTime();
^
arduino-timer-relay:139:19: error: 'RTC' was not declared in this scope
int MinToday = (RTC.hours * 60) + RTC.minutes;
^
C:\Users\Craig Boucher\Documents\Arduino\arduino-timer-relay\arduino-timer-relay.ino: In function 'void setRTC()':
arduino-timer-relay:184:28: error: expected primary-expression before '.' token
setupShowValue(RTC_DS1307.hours, RTC_DS1307.minutes, 0);
^
arduino-timer-relay:184:46: error: expected primary-expression before '.' token
setupShowValue(RTC_DS1307.hours, RTC_DS1307.minutes, 0);
^
arduino-timer-relay:189:13: error: expected unqualified-id before '.' token
RTC_DS1307.updateTime();
^
arduino-timer-relay:190:28: error: expected primary-expression before '.' token
setupShowValue(RTC_DS1307.hours, RTC_DS1307.minutes, 1);
^
arduino-timer-relay:190:46: error: expected primary-expression before '.' token
setupShowValue(RTC_DS1307.hours, RTC_DS1307.minutes, 1);
^
arduino-timer-relay:192:36: error: expected primary-expression before '.' token
setupChooseValueSetRTC(RTC_DS1307.hours, RTC_DS1307.minutes, 1);
^
arduino-timer-relay:192:54: error: expected primary-expression before '.' token
setupChooseValueSetRTC(RTC_DS1307.hours, RTC_DS1307.minutes, 1);
^
C:\Users\Craig Boucher\Documents\Arduino\arduino-timer-relay\arduino-timer-relay.ino: In function 'void setupChooseValueSetRTC(int, int, byte)':
arduino-timer-relay:432:16: error: request for member 'setDS1302Time' in '12343', which is of non-class type 'int'
'RTC_DS1307'.setDS1302Time(00, MinNew, HourNew, 6, 10, 1, 2014);
^
C:\Users\Craig Boucher\Documents\Arduino\arduino-timer-relay\arduino-timer-relay.ino: In function 'void displayTime()':
arduino-timer-relay:476:13: error: expected unqualified-id before '.' token
RTC_DS1307.updateTime();
^
arduino-timer-relay:477:26: error: expected primary-expression before '.' token
print2digits(RTC_DS1307.hours);
^
arduino-timer-relay:479:26: error: expected primary-expression before '.' token
print2digits(RTC_DS1307.minutes);
^
arduino-timer-relay:481:26: error: expected primary-expression before '.' token
print2digits(RTC_DS1307.seconds);
^
exit status 1
expected unqualified-id before '.' token
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Any help would be greatly appreciated. Its a copied sketch that i've changed from virtuabotixRTC to RTClib, as i was having trouble with locating virtuabotixRTC in my files when i #include <virtuabotixRTC.h> in the sketch it was say the file wasn't located.