library to control, set and read time and date from Hotboards rtcc board, wich contains the Microchip MCP7941x real time clock
Dependents: Hotboards_rtcc_manual_timedate Hotboards_rtcc_timeSpan Hotboards_rtcc_alarm Hotboards_rtcc_compiler_timedate ... more
Revision 1:0790bcaf8b8f, committed 2016-02-09
- Comitter:
- Hotboards
- Date:
- Tue Feb 09 19:28:24 2016 +0000
- Parent:
- 0:3a2ad459941a
- Commit message:
- corrected a trouble with the device adress:; ; #define RTC_ADDR (uint8_t)(0xDE >> 1); #define EEPROM_ADDR (uint8_t)(0xAE >> 1); ; ;
Changed in this revision
Hotboards_rtcc.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 3a2ad459941a -r 0790bcaf8b8f Hotboards_rtcc.cpp --- a/Hotboards_rtcc.cpp Tue Feb 02 04:11:32 2016 +0000 +++ b/Hotboards_rtcc.cpp Tue Feb 09 19:28:24 2016 +0000 @@ -8,8 +8,8 @@ #include "Hotboards_rtcc.h" -#define RTC_ADDR (uint8_t)(0xDE >> 1) -#define EEPROM_ADDR (uint8_t)(0xAE >> 1) +#define RTC_ADDR (uint8_t)(0xDE) +#define EEPROM_ADDR (uint8_t)(0xAE) #define RTC_STARTADDR (uint8_t)0x00 #define ALARM_STARTADDR (uint8_t)0x0A #define CTRL_STARTADDR (uint8_t)0x07