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

Long press implementation

Hi,

I am trying to create a Mesh network using CCT controlled lights and switch.

I am using nRF52-DK, I want to use one of the button for two functionalities i.e storing scene on long press and recalling the scene on short press. So I want to implement long press and short press on that button and use rest of the buttons as normal press for controlling the CCT and lightness of the lights.

I am trying to develop a long button press handler, but I am unable to find the proper documentation or example code to help with that.

Could anyone please suggest a solution.

Mesh version 5.0

nRFSDK v17.0.2

Regards,

Zolu

Related