<?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>I&amp;#39;d like to make a button double-click feature.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67850/i-d-like-to-make-a-button-double-click-feature</link><description>Hello 
 I am making a button double-click function in sdk v17. I&amp;#39;ve tried &amp;#39;app_button&amp;#39; and &amp;#39;app_timer&amp;#39;. Created a timer that is called every 0.1 seconds and terminates when 5 calls(0.5sec). This timer is to wait for the next button after pressing the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Nov 2020 10:59:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67850/i-d-like-to-make-a-button-double-click-feature" /><item><title>RE: I'd like to make a button double-click feature.</title><link>https://devzone.nordicsemi.com/thread/278029?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 10:59:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6934715-5ebf-4e14-9983-0a29c3e993e8</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I would call &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__app__timer.html#gae36265bac1480fbb1522f63f70ac369f"&gt;app_timer_cnt_get()&lt;/a&gt;&lt;span&gt;&amp;nbsp;on every button press, and if the time since the last button press was below a specific limit then assume it was a double press. You would need to always buffer the &lt;em&gt;previous_button_press_timer_cnt_value&lt;/em&gt; or something to compare with using for instance &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__app__timer.html#ga19d88a7d3da7d03f8a2c956a2ac5ccf3"&gt;app_timer_cnt_diff_compute()&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>