Arduino Library for PCF8563 real time clock.
PCF8563 class members :
Initialise PCF8563.
Stop the clock.
Start the clock.
Sets year.
Parameters:
- uint8_t year - year (00 to 99)
Sets month.
Parameters:
- uint8_t year - year (00 to 99)
Sets day.
Parameters:
- uint8_t year - year (00 to 99)
Sets hour.
Parameters:
- uint8_t year - year (00 to 99)
Sets minut.
Parameters:
- uint8_t year - year (00 to 99)
Sets second.
Parameters:
- uint8_t year - year (00 to 99)
Enables square signal output pin.
Disables square signal output pin.
Sets output signal frequency.
Parameters:
- output_frequency frequency - selected frequency
Valid values :
CLKOUT_32768_Hz
- 32768HzCLKOUT_1024_Hz
- 1024HzCLKOUT_32_Hz
- 32HzCLKOUT_1_Hz
- 1Hz
Reads current time and returns it as a structure.
Returns: Current time encoded inside Time structure.
Time structure :
struct Time
{
uint8_t year; //year
uint8_t month; //month
uint8_t day; //day
uint8_t weekday; //weekday (1-7)
uint8_t hour; //hour
uint8_t minute; //minute
uint8_t second; //second
};
Check clock integrity.
Returns: true if clock is valid. If not returns false.