<?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>Custom button event not firing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27913/custom-button-event-not-firing</link><description>I have modified pca10040.h as 
 #define BUTTONS_NUMBER 5

#define BUTTON_START 13
#define BUTTON_1 13
#define BUTTON_2 14
#define BUTTON_3 15
#define BUTTON_4 16
#define BUTTON_5 17
#define BUTTON_STOP 17
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Dec 2017 00:27:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27913/custom-button-event-not-firing" /><item><title>RE: Custom button event not firing</title><link>https://devzone.nordicsemi.com/thread/110147?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 00:27:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0529e101-8021-4d6d-ad68-02577ea90200</guid><dc:creator>Raja</dc:creator><description>&lt;p&gt;Thanks @jornfr it worked perfectly on pin 22&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom button event not firing</title><link>https://devzone.nordicsemi.com/thread/110146?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 08:45:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fdf6e27-6fbd-4bea-8991-9124ef25ee8e</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Hello Rahul&lt;/p&gt;
&lt;p&gt;If you look in the pca10040.h file you will see that P0.17 is already assigned to LED1. The bsp_init function first configures the designated pins as buttons, and then performs the same task for leds. It is reasonable to think it overwrites the button configurations and reconfigures the pin as an output. You should try to choose a different pin for your additional button.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jørn Frøysa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>