<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Long press implementation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70242/long-press-implementation</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Jan 2021 09:14:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70242/long-press-implementation" /><item><title>RE: Long press implementation</title><link>https://devzone.nordicsemi.com/thread/288109?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2021 09:14:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c4ea078-af8e-43dc-b6f8-97be12b1ea48</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Zolu,&lt;/p&gt;
&lt;p&gt;The typical way to detect long button presses is to combine a method of debouncing to detect button press and button release, and then measure the time from button press to button release using an app_timer, as suggested in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/15365/button-long-press-detect-using-bsp/58706#58706"&gt;this old post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>