<?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 blink led using gpio of nrf51422 dk?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18781/how-to-blink-led-using-gpio-of-nrf51422-dk</link><description>please provide code for blinking led using gpio of nrf51422 dk</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Jan 2017 00:45:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18781/how-to-blink-led-using-gpio-of-nrf51422-dk" /><item><title>RE: how to blink led using gpio of nrf51422 dk?</title><link>https://devzone.nordicsemi.com/thread/72553?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2017 00:45:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:670cfc04-d373-40b7-a38c-24c252a3fa70</guid><dc:creator>Dave_Avatech</dc:creator><description>&lt;p&gt;The &amp;quot;experimental ble app blinky&amp;quot; example in the SDK shows how to toggle the LED with a button press.&lt;/p&gt;
&lt;p&gt;Or, if you are connecting an LED/resistor to an arbitrary GPIO:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint8_t led_out = 0;  // led value
uint8_t led_pin = 23;  // led gpio pin number

rf_gpio_cfg_output(led_pin);
while(true)
{
      nrf_gpio_pin_set(led_pin);
     nrf_delay_ms(100);
     nrf_gpio_pin_clear(led_pin);
     nrf_delay_ms(100);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>