Simple RTC class based on DS1307. Emphasis on simple. Allows you to run at 100k or 400k Hz (for newer DS1307 capable devices). MapTime() allows you to set the time() service to the same as the RTC. Uses struct tm throughout so you can use traditional time functions for manipulation.
Diff: RTclock.h
- Revision:
- 11:49b987f6ae26
- Parent:
- 10:e5eabd3a1ca6
- Child:
- 13:1ccadbd4c1bd
--- a/RTclock.h Tue Sep 02 07:12:09 2014 +0000 +++ b/RTclock.h Tue Sep 02 08:11:26 2014 +0000 @@ -48,14 +48,14 @@ static int decimalToBcd(int in_nDecimal); virtual bool read ( - int in_nAddress, + uint8_t in_nAddress, char * out_pBuffer, int in_nLength ); virtual bool setRunning(bool in_nEnable); virtual bool write ( - int in_nAddress, + uint8_t in_nAddress, const char * in_pBuffer, int in_nLength );