<?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>Basic GPIO usage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55000/basic-gpio-usage</link><description>Hello All, 
 Recently I got the nRF 52840 PDK kit and wanted to start with a simple example. 
 I tried do the following. It works but when I use the following it doesn&amp;#39;t. Can someone please help me out with the same? I would really appreciate it.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Nov 2019 09:39:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55000/basic-gpio-usage" /><item><title>RE: Basic GPIO usage</title><link>https://devzone.nordicsemi.com/thread/222736?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 09:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2bce085-3a87-493d-9022-4f8e68753c51</guid><dc:creator>nordicuser91</dc:creator><description>&lt;p&gt;Thanks for help. I think the GPIO peripheral requires some time to update the values on the register.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Basic GPIO usage</title><link>https://devzone.nordicsemi.com/thread/222692?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 05:28:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6a4f8e8-22ba-4588-b487-0544f525bf38</guid><dc:creator>Honey</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You have to add one extra delay to see the change.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;quot;nrf.h&amp;quot;
#include &amp;quot;nrf_gpio.h&amp;quot;
#include &amp;quot;nrf_delay.h&amp;quot;

#define LED1_PIN 13

int main (void)
{
   nrf_gpio_cfg_output(LED1_PIN);
   nrf_gpio_pin_clear(LED1_PIN);
   while(1)
   {
       nrf_gpio_pin_set(LED1_PIN);
       nrf_delay_ms(1000);
       nrf_gpio_pin_clear(LED1_PIN);
       nrf_delay_ms(1000);
   }
}&lt;/pre&gt;Regards&lt;/p&gt;
&lt;p&gt;Honey&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>