<?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>set gpio pin</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16015/set-gpio-pin</link><description>Hello! 
 I want to set the Pin2 (GPIO) on VCC. I have try it by nrf_gpio_pin_set(2) but it doesn’t work. Is there a better way to set Pin2? 
 Thanks!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Aug 2016 12:28:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16015/set-gpio-pin" /><item><title>RE: set gpio pin</title><link>https://devzone.nordicsemi.com/thread/61084?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 12:28:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:708b721f-b841-4d2d-8d38-e92999b703f6</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/pdf/nRF51822_PS_v3.3.pdf"&gt;Product specification&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set gpio pin</title><link>https://devzone.nordicsemi.com/thread/61083?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 12:26:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57cdc681-50f4-410e-9620-44e36583fd11</guid><dc:creator>Nitram</dc:creator><description>&lt;p&gt;where could I see which GPIO goes to which Pin?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set gpio pin</title><link>https://devzone.nordicsemi.com/thread/61085?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 11:16:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29da98bd-e803-44e7-b112-a727a3059f1b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You would have to enable the pin before you set it, for example like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t pin = 2;
nrf_gpio_cfg_output(pin);
nrf_gpio_pin_set(pin);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set gpio pin</title><link>https://devzone.nordicsemi.com/thread/61082?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 11:08:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:505e2233-edcb-4f6a-af26-e01d343bea89</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Have you configured it as output? And by the way (2) means GPIO2 signal, not physical pin number on chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>