Wiblocks --- NB2AS RTC

NB2AS Real-Time Clock

This program initializes the DS1337 real-time clock (RTC) to output a time and date string every second to the serial port. Until the DS1337 is set for the first time (or reset after a battery change) the time registers will be set at zero. The code in the following example will initialize the date to August 25th, 2009 and the time to 3:00PM.

// initialize the date to August 25th, 2009

rtc.set_date(2009, 8, 25);

// intialize the clock to 3PM

rtc.set_time(15, 0, 0);

NB2AS RTC Example

File ../../docs/app-files/nb2as_rtc_r0.pde could not be opened for input