Rtc2 Click example.
Description
This application give time and date information.
The demo application is composed of two sections :
Application Init
Initialization driver enable's - I2C,set start time and date, enable counting and start write log.
Application Task
This is a example which demonstrates the use of RTC 2 Click board. RTC 2 Click communicates with register via I2C by write to register and read from register, set time and date, get time and date, enable and disable counting and set frequency by write configuration register. Results are being sent to the Usart Terminal where you can track their changes. All data logs write on usb uart changes for every 1 sec.
note: Additional Functions :
- void displayDayOfTheWeek( uint8_t dayOfTheWeek ) - Write day of the week log on USART terminal.
- void displayLogUart( uint8_t value ) - Write the value ( time or date ) of a two-digit number.
- Author
- MikroE Team