Hello ,
When I connected RTC DS1307 with Arduino by this code :
#include<Wire.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Wire.begin();
Wire.beginTransmission(0x68);
Wire.write("START");
Wire.endTransmission(true);
Wire.requestFrom(0x68,7 );
while(Wire.available()) {
int c = Wire.read();
Serial.println(c-200);
delay(2000);
}
}
void loop() {
// put your main code here, to run repeatedly:
}
I get those various values in Serial Monitor
255
253
255
251
207
234
239
what should i do if i wanted to show SECONDS,MINUTES,HOURS,DAY,DATE,MONTH and YEAR ?
