<?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 Configure gpio in ble peripheral example(sdk 14)?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29664/how-to-configure-gpio-in-ble-peripheral-example-sdk-14</link><description>I have set up an nrf cloud and can control the led on pca10056 using the nrfcloud so configuring the gpio(pin no 7(Port P0.7))is becoming a problem.Can u provide me with a code to configure the gpio to switch it on and off from the cloud.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jan 2018 11:26:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29664/how-to-configure-gpio-in-ble-peripheral-example-sdk-14" /><item><title>RE: how to Configure gpio in ble peripheral example(sdk 14)?</title><link>https://devzone.nordicsemi.com/thread/117772?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 11:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9454013-f023-44b8-b7f7-ae70c069d1fa</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;My recommendation is that you start with the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/ble_sdk_app_blinky.html?cp=4_0_0_4_2_2_3"&gt;ble_app_blinky example&lt;/a&gt;, and modify this to control the pin of your choice. By default, it will control LED3 on the nRF52840-PDK, by following the testing instructions &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/ble_sdk_app_blinky.html?cp=4_0_0_4_2_2_3_1#project_blinky_test"&gt;described here&lt;/a&gt;. You will have to modify the &lt;code&gt;on_write()&lt;/code&gt; handler in &lt;em&gt;ble_lbs.c&lt;/em&gt;, to set/clear your GPIO using the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/group__nrf__gpio.html?cp=4_0_0_6_9_6"&gt;GPIO abstraction functions&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Note that P0.17 on the nRF52840-PDK is connected to the memory chip over QSPI. If you want to connect the pin to the GPIO headers, you need to disconnect it from the memory chip and connect it to the header, as described on &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52840_pdk/hw_external_memory.html?cp=2_0_3_7_4"&gt;this page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Configure gpio in ble peripheral example(sdk 14)?</title><link>https://devzone.nordicsemi.com/thread/117771?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 07:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c16daf93-99c3-4627-8b2a-7d0764ec0c09</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;sorry pin no 7(P0.17).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>