<?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>Different actions when Button press and released</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80017/different-actions-when-button-press-and-released</link><description>I want to detect the button short press and long press. 
 When short press is &amp;quot;released&amp;quot;, trigger LED mode 1. 
 When detect 3 sec long press, start edit mode. 
 It seems GPIOE pins can&amp;#39;t detect different states at the same time. 
 I try to use the interrupt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Sep 2021 13:23:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80017/different-actions-when-button-press-and-released" /><item><title>RE: Different actions when Button press and released</title><link>https://devzone.nordicsemi.com/thread/331329?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 13:23:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0008e75f-658b-4d48-bf8b-c96346a8c732</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have a look at&amp;nbsp;&lt;span&gt;the answer from Vidar in&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/43506/how-to-use-bsp_button_action_push-and-bsp_button_action_long_push-on-the-same-button-with-two-different-functions"&gt;this thread&lt;/a&gt;&lt;span&gt;&amp;nbsp;provides an example for how to do this.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>