<?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 using BSP</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15365/button-long-press-detect-using-bsp</link><description>Hi,
I am using BSP for button detect. I wish to read the button Long Press of Different intervals. 3 Secs, 5 Secs etc. 
 Someone please help me achieving this. Some code snippets will be of great help.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Aug 2016 07:39:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15365/button-long-press-detect-using-bsp" /><item><title>RE: Button Long Press Detect using BSP</title><link>https://devzone.nordicsemi.com/thread/58707?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2016 07:39:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d6c2a30-5809-4cab-bdbb-0cf61677e2b4</guid><dc:creator>Harsha</dc:creator><description>&lt;p&gt;Thanks So Much. It Works :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button Long Press Detect using BSP</title><link>https://devzone.nordicsemi.com/thread/58706?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2016 10:48:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69b73586-8876-4bb4-bde1-6289776bc304</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;I would not recommend using the bsp module (despite the fact that it is used in most BLE examples), but use the button module (app_button) instead. Take a look at &lt;a href="https://devzone.nordicsemi.com/question/60033/button-interrupt-problem-when-booting/?answer=60480#post-id-60480"&gt;this answer&lt;/a&gt; for an example on how to use it.&lt;/p&gt;
&lt;p&gt;Use app_timer to check how long the button is pushed. For example, start a timer when button is pushed and stop it when it is released, the timer should be in repeated mode with a timeout of 1 second to count how many seconds the button is pushed. Take a look at the &lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;app_timer tutorial&lt;/a&gt; for how to use app_timer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>