<?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>Unable to control GPIO pins in nRF51422</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23106/unable-to-control-gpio-pins-in-nrf51422</link><description>Hello, i am a beginner, i want to configure an LED to be connected on one of the GPIO pins, please help me with the code.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Jun 2017 10:31:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23106/unable-to-control-gpio-pins-in-nrf51422" /><item><title>RE: Unable to control GPIO pins in nRF51422</title><link>https://devzone.nordicsemi.com/thread/90923?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 10:31:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79043678-376e-4aab-8ed9-2a03f6a2e90a</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Happy to help! I can see you have another question about the OLED display. I suggest you provide the details thats been asked for and wait for a reply there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to control GPIO pins in nRF51422</title><link>https://devzone.nordicsemi.com/thread/90922?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 09:53:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36655e59-c168-4a26-826e-5e4aee904be0</guid><dc:creator>YASH</dc:creator><description>&lt;p&gt;Thank you so much. Can you help me on how to interface an OLED display 128x32 spi with nRF51422?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to control GPIO pins in nRF51422</title><link>https://devzone.nordicsemi.com/thread/90921?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 12:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f81c6a3-9c6a-4a1e-bfc7-51f3083aa661</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Verma.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know excactly what you want to do with the LED. But i assume you want it to light up. The easiest way to control the LED is to use the nrf_gpio interface directly.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Configure the pin as an output: &lt;code&gt;nrf_gpio_cfg_output(pin_number)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Turn on/off the LED:&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;nrf_gpio_pin_set(pin_number)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;nrf_gpio_pin_clear(pin_number)&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you want it to blink, I suggest you take a look at &lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;this&lt;/a&gt; tutorial, which sets up a timer that toggles an LED.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>