This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to create button with timer multi-function

Other Parts Discussed in Thread: CC2530

How can we make a button with timer that serve a different function?

Example:

press SW_2 once will toggle on/off light.

hold SW_2 for more than 10 seconds will reset CC2530.

Can anyone give a brief me on how to do this? Thanks.