<?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>Button sequence control</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53754/button-sequence-control</link><description>Hi, 
 Recently, I was trying to move my project from STM to Nordic IC. 
 I just wonder how to implement the below codes into the nRF52832 or how to program it in Nordic environment. 
 The current SDK I use is 15.2. Whether there is any inc and src files</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Nov 2019 03:39:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53754/button-sequence-control" /><item><title>RE: Button sequence control</title><link>https://devzone.nordicsemi.com/thread/217866?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2019 03:39:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12ee9b35-e92a-4fa9-bf4d-527033d784dd</guid><dc:creator>CY</dc:creator><description>&lt;p&gt;See, I will try to modified the app_button.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button sequence control</title><link>https://devzone.nordicsemi.com/thread/217496?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 11:16:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:386525a6-9330-4243-948e-4c2970a809bb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Wedy,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. I don&amp;#39;t see any problem on what you want to achieve.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;I think it&amp;#39;s better to use app_button&lt;/p&gt;
&lt;p&gt;3. The app_button already use a timer to detect if a button is pressed for a period of time (detection_delay for debouncing). However, there is no detection if it&amp;#39;s double click or long hold.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You&amp;nbsp;can either modify the app_button to add these feature, or create a library that use app_button to detect if it&amp;#39;s double click or it&amp;#39;s a long hold.&lt;/p&gt;
&lt;p&gt;4. I don&amp;#39;t think there is an easy way to port the original code for STM32 to Nordic except for re-writing the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>