<?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 use Buttons input as GPIO</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20370/how-to-use-buttons-input-as-gpio</link><description>Hi, i&amp;#39;am working on a custom board on which there is two led drive by a led driver. 
 The two leds are wiring to be drive by pins P0.14 and P0.15, but unfortunately these pins are consider to be button with: 
 uint32_t err_code = bsp_init(BSP_INIT_LED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Mar 2017 12:02:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20370/how-to-use-buttons-input-as-gpio" /><item><title>RE: How to use Buttons input as GPIO</title><link>https://devzone.nordicsemi.com/thread/79409?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 12:02:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:927cbce8-4749-4fd9-a0ec-d2cd28133af8</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Well the idea is to use &lt;code&gt;BOARD_CUSTOM&lt;/code&gt; define so in &lt;code&gt;\examples\bsp\boards.h&lt;/code&gt; it refers to &lt;code&gt;custom_board.h&lt;/code&gt; which is the file you should create and fill within your own project folder. Editing SDK files like this is kind of a red flag for me but sure, it will do the job.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Buttons input as GPIO</title><link>https://devzone.nordicsemi.com/thread/79408?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 11:02:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:463b4fda-7be8-456e-9f42-d725c8abfaef</guid><dc:creator>Maxim</dc:creator><description>&lt;p&gt;Yes, it works by editing the pca10040.h and reconfigure buttons !
Thanks you so much for your answer !!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Buttons input as GPIO</title><link>https://devzone.nordicsemi.com/thread/79407?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 11:00:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2c81365-0aaf-415b-bb10-b583f352768c</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;What should be easier and more natural then creating custom header file for custom beard if you want to compile some example?:)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Buttons input as GPIO</title><link>https://devzone.nordicsemi.com/thread/79406?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 10:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:141bbdba-cf9b-43aa-afd8-ea77c4ecf046</guid><dc:creator>Maxim</dc:creator><description>&lt;p&gt;I&amp;#39;am actually using the NRF52DK to program a custom board with a BMD-300 embedded. I&amp;#39;ll try to create a custom header for this board if nothing easier already exists.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Buttons input as GPIO</title><link>https://devzone.nordicsemi.com/thread/79405?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 10:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a35811d-5556-44c6-978a-da3d95323700</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi Maxim,&lt;/p&gt;
&lt;p&gt;this is specific to particular board layout. Does it mean that you want to use some specific Dev Kit from Nordic? Then you need to tell us which and what revision. All the latest revisions of nRF51 and nRF52 DK have Arduino style headers including disabling circuit for buttons and LEDs. So simply read User Guide, ground specific PIN and you can repurpose nRF5x PINs for any GPIO task without dealing with buttons and LEDs on the DK board. To have it complete just create custom header file for board configuration (there is nice hook ready in the SDK projects) so you can still use all the modules with predefined symbols etc.&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>