This is a simple example that utilizes mikroSDK 2.0 RTC driver library. In this demo, we demonstrate how to configure and enable RTC module and use its functionalities like start, stop, set_time, reset and system_reset.
- Authors
- Version : 3.0.0
- Date : ${COPYRIGHT_YEAR}.
- Plug in a USB Type C cable into USB-UART port.
- Alternatively, place the USB UART click in a mikroBUS socket and change TX and RX pins in code. In this case, you'll need to connect a USB Mini-B cable directly to the click.
We provide demo code for demonstrating the usage of functions contained in RTC driver library. To run this example, follow these steps:
- Install the package from Package manager.
- Open example.
- It will take you to setups.
- Choose desired compiler and click on Advanced.
- Choose desired output and click on Save.
- Proceed with selecting your Board, MCU, and programmer/debugger tool.
- Click Finish.
- Follow TODO comments in MACROS section to set up project.
- If you selected Aplication output in step 5. Click on Debug.
- Time will apear in Aplication output and will be updated depending on what you set in step 8.
- If you selected UART in step 5. Click on Flash.
- Go to Tools->UART Terminal.
- Click on Options, select adequate Port and set Baud rate to 115200.
- Click on Configure and then Connect.
- Time will apear in UART terminal and will be updated depending on what you set in step 8.