<?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>GPIO wrong?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14249/gpio-wrong</link><description>Hi there! 
 I have nRF51 DK (PCA10028). 
 I config GIPO as below: 
 nrf_drv_gpiote_out_config_t out_config = GPIOTE_CONFIG_OUT_SIMPLE(false); 
 err_code = nrf_drv_gpiote_out_init(LED_1, &amp;amp;out_config); 
 APP_ERROR_CHECK(err_code); 
 Why do LED_1 turn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Jun 2016 01:27:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14249/gpio-wrong" /><item><title>RE: GPIO wrong?</title><link>https://devzone.nordicsemi.com/thread/54413?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2016 01:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46d7dabf-76f8-43c3-a91a-f42e311f1304</guid><dc:creator>Quinn</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO wrong?</title><link>https://devzone.nordicsemi.com/thread/54412?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2016 10:41:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2280e598-3e3a-44f8-9ef3-991909922e94</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;code&gt;GPIOTE_CONFIG_OUT_SIMPLE(false);&lt;/code&gt; will configure the pin with initial logic level low (or at 0 V if you want). The LEDs on the PCA10028 are connected like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/adfs.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;so you can see that if the pin is low the LED will light up. If you want to initialize the LED to be off then simply write &lt;code&gt;GPIOTE_CONFIG_OUT_SIMPLE(true);&lt;/code&gt;. It might seem a little backwards, but the true and false in the macro is with respect to high or low logic level, not whether or not the LEDs are on or off.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>