This is a class for using the DS1307 Real Time Clock chip from Dallas Semiconductor. This class uses mbeds i2c class to talk to the chip. I have tested this currently on the LPC1768 mbed device with the Spark fun breakout board from http://www.sparkfun.com/products/99

Dependents:   ProjectHTTP

Fork of DS1307 by Philip Smith

Files at this revision

API Documentation at this revision

Comitter:
Michielber
Date:
Thu Dec 04 10:35:55 2014 +0000
Parent:
0:c3e4da8feb10
Commit message:
4/12/2014 Berckvens Michiel & Basteyns Jonas

Changed in this revision

ds1307.h Show annotated file Show diff for this revision Revisions of this file
--- a/ds1307.h	Sun Jun 24 22:09:35 2012 +0000
+++ b/ds1307.h	Thu Dec 04 10:35:55 2014 +0000
@@ -67,15 +67,17 @@
  * int main() {
  *     int junk = 0;
  *
- *     sec = 24;       // 24 seconds
- *     min = 13;       // 13 min
- *     hours = 13;     // 1 pm
- *     day = 4;        // wednesday
- *     date = 20;      // June 20
- *     month = 6;
- *     year = 12;      // 2012
+ *     sec = 00;       // 24 seconds 
+ 
+ *     min = 08;       // 13 min
+ *     hours = 11;     // 1 pm
+ *     day = 5;        // wednesday
+ *     date = 04;      // June 20
+ *     month = 12;
+ *     year = 14;      // 2012
  *                     // set time to these values on the ds1307 connected device
  *
+ *
  *     test_rw(my1307.settime( sec, min, hours, day, date, month, year));
  *     pc.printf("seconds set are %.2D \n\r",sec);
  *     pc.printf("min set are %.2D \n\r",min);