<?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 long press detect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1890/button-long-press-detect</link><description>If I want detect the buttons long press for mouse key hold, how to do?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Jul 2018 12:56:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1890/button-long-press-detect" /><item><title>RE: button long press detect</title><link>https://devzone.nordicsemi.com/thread/139898?ContentTypeID=1</link><pubDate>Thu, 12 Jul 2018 12:56:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3db55cd5-5ee9-4f35-8e89-63939615bf14</guid><dc:creator>jyothi</dc:creator><description>&lt;p&gt;hi HSA, did you find any solution for Button_multiple_press_handling. Could you help me with examples of buttons to function with short and long press.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button long press detect</title><link>https://devzone.nordicsemi.com/thread/8149?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2015 00:07:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b0c598d-7d82-427b-9ac8-804d3437fb14</guid><dc:creator>HSA</dc:creator><description>&lt;p&gt;@Håkon Alseth / @Manlio: Hi, Could you please suggest any example which describes, Button_multiple_press_handling, like short press, long press and double press...something.?&lt;/p&gt;
&lt;p&gt;Please suggest,&lt;/p&gt;
&lt;p&gt;Thanks n Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button long press detect</title><link>https://devzone.nordicsemi.com/thread/8148?ContentTypeID=1</link><pubDate>Thu, 27 Mar 2014 10:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54c29cf2-0630-4ebd-a1e9-868e729c07bc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should look at both app_button and app_timer to do the task that you describe.
When you get the button-event, start the app_timer instance.&lt;/p&gt;
&lt;p&gt;BR
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button long press detect</title><link>https://devzone.nordicsemi.com/thread/8147?ContentTypeID=1</link><pubDate>Thu, 27 Mar 2014 04:03:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36ee4519-ad77-4798-8cdd-4456d76c5a70</guid><dc:creator>Manlio</dc:creator><description>&lt;p&gt;I have tested it.
But It only can implement the evnet one time when I hold the button not release.
I want to implement the event every 250ms not only one time.
Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button long press detect</title><link>https://devzone.nordicsemi.com/thread/8146?ContentTypeID=1</link><pubDate>Wed, 26 Mar 2014 11:23:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb4d4153-db70-4257-a1fe-cf4bc2f53c69</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try looking at example &amp;quot;ble_app_hids_mouse&amp;quot; and look at function &amp;quot;buttons_init()&amp;quot;.
This shows you how to setup detection delay.
Change define &amp;quot;BUTTON_DETECTION_DELAY&amp;quot; to:
&lt;code&gt;APP_TIMER_TICKS(250, APP_TIMER_PRESCALER)&lt;/code&gt;
And then it&amp;#39;s setup to 250 ms before it fires the event handler.&lt;/p&gt;
&lt;p&gt;Best regards
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button long press detect</title><link>https://devzone.nordicsemi.com/thread/8145?ContentTypeID=1</link><pubDate>Wed, 26 Mar 2014 03:48:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ba02693-ab9e-4464-89b4-7bbff9465553</guid><dc:creator>Manlio</dc:creator><description>&lt;p&gt;if I need do a event every 250ms when the button be pressed, how to do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button long press detect</title><link>https://devzone.nordicsemi.com/thread/8144?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2014 11:39:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0498bb2-d90a-4fc6-8451-a26427e72e9f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You could check out the app_button library in the SDK.
With this library, you can set the interval a button should be pressed until you get an event.&lt;/p&gt;
&lt;p&gt;Best regards
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>