<?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>pin set issue when direction as output pin</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33399/pin-set-issue-when-direction-as-output-pin</link><description>hi 
 I need to set a pin high when i make a connection to the device .so i set to output direction in main.c file.i have include gpio.h and nrf_delay.h file in main file 
 nrf_gpio_pin_dir_set(29,NRF_GPIO_PIN_DIR_OUTPUT); //red led 
 nrf_delay_ms(100</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Apr 2018 14:51:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33399/pin-set-issue-when-direction-as-output-pin" /><item><title>RE: pin set issue when direction as output pin</title><link>https://devzone.nordicsemi.com/thread/128852?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 14:51:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62fffdca-b4b9-4317-b3c5-e0913ceedb90</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;This is how you&amp;#39;ve setup the connection to the LED on your hardware, so; yes, it is correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pin set issue when direction as output pin</title><link>https://devzone.nordicsemi.com/thread/128838?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 14:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d51b0f6-4056-404a-a791-9f143fad3744</guid><dc:creator>kirt</dc:creator><description>&lt;p&gt;am doing wrong/right?&lt;/p&gt;
&lt;p&gt;when i give gpio pin direction as output LED light up&lt;/p&gt;
&lt;p&gt;when pin is set led turns off&lt;/p&gt;
&lt;p&gt;when pin is cleared turns on&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pin set issue when direction as output pin</title><link>https://devzone.nordicsemi.com/thread/128833?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 13:47:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:746c92a9-f7d3-42a4-886a-f8db0d2cfe8d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;By setting the GPIO direction to OUTPUT, the reset (default) value will be low (ie: logical zero -&amp;gt; GND), and thus the LED will light up, as you&amp;#39;re sinking current through the GPIO.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pin set issue when direction as output pin</title><link>https://devzone.nordicsemi.com/thread/128760?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 09:39:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9539b416-870b-41cb-a199-2c0842c62db4</guid><dc:creator>kirt</dc:creator><description>&lt;p&gt;just by giving only direction as output this LED becomes ON.I didnot set or clear&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pin set issue when direction as output pin</title><link>https://devzone.nordicsemi.com/thread/128722?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 06:18:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:604fad94-b29b-4e45-8929-10af5da75d54</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;so there you go - with that wiring the LED will come ON when the pin is LOW and goes OFF when the pin is HIGH. So there&amp;#39;s nothing wrong here.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pin set issue when direction as output pin</title><link>https://devzone.nordicsemi.com/thread/128720?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 06:14:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43e4143a-4d4d-43f4-ac16-208258b12c59</guid><dc:creator>kirt</dc:creator><description>&lt;p&gt;i am using RGB led,amoung these i am using pin 29 to which&amp;nbsp;red&amp;nbsp;LED connected&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;img class="align-right" style="float:right;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/rgb.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pin set issue when direction as output pin</title><link>https://devzone.nordicsemi.com/thread/128344?ContentTypeID=1</link><pubDate>Sun, 15 Apr 2018 01:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0acc2bb1-7185-4697-aecf-77b3bca9295b</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;and how is the LED wired?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pin set issue when direction as output pin</title><link>https://devzone.nordicsemi.com/thread/128323?ContentTypeID=1</link><pubDate>Sat, 14 Apr 2018 08:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d71bd6c-8197-49d2-9574-da70a7b59b55</guid><dc:creator>kirt</dc:creator><description>&lt;p&gt;i am checking LED status when i provide logic high n logic low.&lt;/p&gt;
&lt;p&gt;By writting only this&amp;nbsp;&lt;span&gt;&amp;nbsp;nrf_gpio_pin_dir_set(29,NRF_GPIO_PIN_DIR_OUTPUT);&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;pin no.29 gets set LED connected to pin 29&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pin set issue when direction as output pin</title><link>https://devzone.nordicsemi.com/thread/128322?ContentTypeID=1</link><pubDate>Sat, 14 Apr 2018 08:15:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0839639f-3a70-472c-8d7b-7c95e73d6c71</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;What are you using&amp;nbsp; to measure the pin being high or low? I see the word &amp;quot;LED&amp;quot; in the code, if you&amp;#39;re using one of the Nordic boards, their LEDs come ON when the pin is low and go OFF when it&amp;#39;s high.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>