8
RTC.set( DS1307_YR, 12 );
9
RTC.set( DS1307_MTH, 2 );
10
RTC.set( DS1307_DAY, 25 );
11
RTC.set( DS1307_HR, 14 );
12
RTC.set( DS1307_MIN, 25 );
13
RTC.set( DS1307_SEC, 0 );
14
// RTC.set( DS1307_DOW, 4 );
20
pinMode( 13, OUTPUT );
28
Serial.print( rtc[ DS1307_YR ] );
30
if( rtc[ DS1307_MTH ] < 10 ) Serial.print( "0" );
31
Serial.print( rtc[ DS1307_MTH ] );
33
if( rtc[ DS1307_DAY ] < 10 ) Serial.print( "0" );
34
Serial.print( rtc[ DS1307_DAY ] );
36
if( rtc[ DS1307_HR ] < 10 ) Serial.print( "0" );
37
Serial.print( rtc[ DS1307_HR ] );
39
if( rtc[ DS1307_MIN ] < 10 ) Serial.print( "0" );
40
Serial.print( rtc[ DS1307_MIN ] );
42
if( rtc[ DS1307_SEC ] < 10 ) Serial.print( "0" );
43
Serial.println( rtc[ DS1307_SEC ] );
45
digitalWrite( 13, HIGH );
47
digitalWrite( 13, LOW );
49
digitalWrite( 13, HIGH );
51
digitalWrite( 13, LOW );