got it. here is the full error message
Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"
CLOCK:52: error: stray '\302' in program
dayOfWeek = bcdToDec(Wire.read());
^
CLOCK:52: error: stray '\240' in program
CLOCK:54: error: stray '\302' in program
month = bcdToDec(Wire.read());
^
CLOCK:54: error: stray '\240' in program
CLOCK:62: error: stray '\302' in program
}Â
^
CLOCK:62: error: stray '\240' in program
CLOCK:66: error: stray '\302' in program
String (s, m, d, mth, h); Â
^
CLOCK:66: error: stray '\240' in program
CLOCK:10: error: expected initializer before 'byte'
byte second,
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino: In function 'void setup()':
CLOCK:34: error: expected initializer before 'Wire'
Wire.begin()
^
CLOCK:42: error: 'year' was not declared in this scope
year = 14;
^
CLOCK:43: error: 'setDateDs1307' was not declared in this scope
setDateDs1307(second, minute, hour, dayOfWeek, dayOfMonth, month, year);
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino: In function 'void getDteDs1307(byte*, byte*, byte*, byte*, byte*, byte*, byte*)':
CLOCK:47: error: no matching function for call to 'TwoWire::beginTransmission(int, int)'
Wire.beginTransmission(DS1307_I2C_ADDRESS, 7)
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino:47:47: note: candidates are:
In file included from C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino:1:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:57:10: note: void TwoWire::beginTransmission(uint8_t)
void beginTransmission(uint8_t);
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:57:10: note: candidate expects 1 argument, 2 provided
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:58:10: note: void TwoWire::beginTransmission(int)
void beginTransmission(int);
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:58:10: note: candidate expects 1 argument, 2 provided
CLOCK:50: error: 'bcdToDec' was not declared in this scope
minute = bcdToDec(Wire.read());
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino: At global scope:
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino:45:25: warning: unused parameter 'second' [-Wunused-parameter]
void getDteDs1307(byte *second, byte *minute, byte *hour, byte *dayOfWeek, byte *dayOfMonth, byte *month, byte *year)
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino: In function 'void setup()':
CLOCK:57: error: redefinition of 'void setup()'
void setup()
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino:31:6: note: 'void setup()' previously defined here
void setup()
^
CLOCK:61: error: 'lcd' was not declared in this scope
lcd.begin(16, 2);
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino:59:8: warning: unused variable 'second' [-Wunused-variable]
byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino:59:16: warning: unused variable 'minute' [-Wunused-variable]
byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino:59:24: warning: unused variable 'hour' [-Wunused-variable]
byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino:59:30: warning: unused variable 'dayOfWeek' [-Wunused-variable]
byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino:59:41: warning: unused variable 'dayOfMonth' [-Wunused-variable]
byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino:59:53: warning: unused variable 'month' [-Wunused-variable]
byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino:59:60: warning: unused variable 'year' [-Wunused-variable]
byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino: In function 'void loop()':
CLOCK:66: error: expected initializer before 'String'
String (s, m, d, mth, h); Â
^
CLOCK:67: error: 'year' was not declared in this scope
getDateDs1307(second, minute, hour, dayOfWeek, dayOfMonth, month, year);
^
CLOCK:67: error: 'getDateDs1307' was not declared in this scope
getDateDs1307(second, minute, hour, dayOfWeek, dayOfMonth, month, year);
^
CLOCK:68: error: 'f' was not declared in this scope
f (second < 10) {
^
CLOCK:70: error: 'else' without a previous 'if'
} else {
^
CLOCK:71: error: 's' was not declared in this scope
s = String(second);
^
CLOCK:74: error: 'm' was not declared in this scope
m = "0" + String(minute);
^
CLOCK:76: error: 'm' was not declared in this scope
m = String(minute);
^
CLOCK:78: error: 'h' was not declared in this scope
h = String(hour);
^
CLOCK:80: error: 'd' was not declared in this scope
d = "0" + String(dayOfMonth);
^
CLOCK:82: error: 'd' was not declared in this scope
d = String(dayOfMonth);
^
CLOCK:85: error: 'mth' was not declared in this scope
mth = "0" + String(month);
^
CLOCK:86: error: expected '}' before 'else'
{ else {
^
CLOCK:86: error: expected '}' before 'else'
CLOCK:87: error: 'mth' was not declared in this scope
mth = String(month);
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino:90:17: warning: declaration of 'char days()' has 'extern' and is initialized
char days() = {"NA", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" }
^
CLOCK:90: error: invalid pure specifier (only '= 0' is allowed) before string constant
char days() = {"NA", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" }
^
CLOCK:90: error: function 'char days()' is initialized like a variable
char days() = {"NA", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" }
^
CLOCK:90: error: expected ',' or ';' before '}' token
char days() = {"NA", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" }
^
C:\Users\DaneS\OneDrive\Documents\Arduino\CLOCK\CLOCK.ino: At global scope:
CLOCK:91: error: 'lcd' does not name a type
lcd.clear();
^
CLOCK:93: error: 'lcd' does not name a type
lcd.setCursor(4, 0);
^
CLOCK:95: error: 'lcd' does not name a type
lcd.print(h + ":" + m + ":" + s);
^
CLOCK:97: error: 'lcd' does not name a type
lcd.setCursor(1, 1);
^
CLOCK:99: error: 'lcd' does not name a type
lcd.print(String(days[dayOfWeek]) + " " + d + "/" + mth + "/20" + year);
^
CLOCK:100: error: expected constructor, destructor, or type conversion before '(' token
delay(1000); // Wait 1 second
^
CLOCK:101: error: expected declaration before '}' token
}
^
exit status 1
stray '\302' in program