<?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>How to get the push event while button is pushing when  system starting up</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40946/how-to-get-the-push-event-while-button-is-pushing-when-system-starting-up</link><description>I&amp;#39;m use the app_button lib to deal with button event ,things go well, I assign the push ,release and long push event to button event . 
 But there came a situation,while the button is pressed at system starting,I can&amp;#39;t capture the push and release event</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Nov 2018 13:59:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40946/how-to-get-the-push-event-while-button-is-pushing-when-system-starting-up" /><item><title>RE: How to get the push event while button is pushing when  system starting up</title><link>https://devzone.nordicsemi.com/thread/159423?ContentTypeID=1</link><pubDate>Wed, 28 Nov 2018 13:59:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91ea372b-f710-4d89-a06d-bb770c330bd1</guid><dc:creator>Pupil</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp; I got it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the push event while button is pushing when  system starting up</title><link>https://devzone.nordicsemi.com/thread/159283?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 15:34:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18d83642-82e6-4449-97e0-3444e73a9bf0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not possible to differentiate between a&amp;nbsp;short button push&amp;nbsp;and long one on startup. You can however check if the button was&amp;nbsp;held&amp;nbsp;down on startup by manually configuration the pin as input and reading its state before initializing the app button module.&amp;nbsp;We use this approach to clear bonding data in our examples that support bonding. I.e., holding button 2 pressed while resetting the device clears bonding information.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>