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

How to vary the LEDs blink rate

Hi all,

I am trying to figure out how to change the LEDs blink rate on the go.

I have set up the timers_init() and let say every 500ms sensor data is read on dev kit and transmitted to a smart phone. According to the sensor data I want to change the blink rate of the LED/LEDs on dev kit. What would be the best method to achieve this?

Thanks for advice ;)

Milan

Parents
  • Thanks for reply. I thought that the BATTERY_LEVEL_MEAS_INTERVAL applies only once during initialisation. (Currently 2000ms) Right? Or do you suggest that I can call the app_timer_start(m_battery_timer_id, BATTERY_LEVEL_MEAS_INTERVAL, NULL); function again in order to modify the timers rate? That would be a solution.

    Yeap the update shows what I was looking for. Many thanks.

Reply
  • Thanks for reply. I thought that the BATTERY_LEVEL_MEAS_INTERVAL applies only once during initialisation. (Currently 2000ms) Right? Or do you suggest that I can call the app_timer_start(m_battery_timer_id, BATTERY_LEVEL_MEAS_INTERVAL, NULL); function again in order to modify the timers rate? That would be a solution.

    Yeap the update shows what I was looking for. Many thanks.

Children
No Data
Related