This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ble_app_blinky example with nrf5-calendar-example

SDK version: nRF5_SDK_15.3.0

Platform: nRF52840 DK

--

I use ble_app_blinky example and use nrf5-calendar(https://github.com/NordicPlayground/nrf5-calendar-example) to calculate timestamp by RTC0.

I put the RTC config and calendar function into the main function of ble_app_blinky. As below.

and add print_current_time() into button_event_handler() to show calendar log and save it when I press button.  

 

I got the log as below when I run the example.

I print CAL->COUNTER in nrf_cal_get_time() function.

I don't know the value of CAL->COUNTER is increasing rapidly when I pressed button per second.

Thank you.

Parents Reply Children
No Data
Related