<?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 modify the initial polarity for LED?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37937/how-to-modify-the-initial-polarity-for-led</link><description>Hello. 
 I am working with a custom board. I have been wondering how to change the default polarity for a pin? I need LED_1 to have a polarity and the other 3 LEDs to have the opposite. When I go to sleep mode my LED turns on and i wanna modify that.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Aug 2018 20:16:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37937/how-to-modify-the-initial-polarity-for-led" /><item><title>RE: how to modify the initial polarity for LED?</title><link>https://devzone.nordicsemi.com/thread/146592?ContentTypeID=1</link><pubDate>Thu, 30 Aug 2018 20:16:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eb8b3df-18a2-4fc5-b7dd-9b8b51243992</guid><dc:creator>gercer</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;After reading the example I noticed I had to add this code:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;nrf_drv_gpiote_out_config_t out_config = GPIOTE_CONFIG_OUT_SIMPLE(false);&lt;/p&gt;
&lt;p&gt;err_code = nrf_drv_gpiote_out_init(LED_1, &amp;amp;out_config);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to modify the initial polarity for LED?</title><link>https://devzone.nordicsemi.com/thread/146336?ContentTypeID=1</link><pubDate>Wed, 29 Aug 2018 13:45:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7d90745-6828-43d2-b3dd-58d1fc93897c</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Gerardo,&lt;/p&gt;
&lt;p&gt;You could change it in the&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fgpio.html&amp;amp;cp=2_1_0_19_0&amp;amp;anchor=concept_o12_bgv_bs" target="_blank" rel="noopener noreferrer"&gt;Register of the pin&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You could also check out the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fpin_change_int_example.html&amp;amp;resultof=%22toggle%22%20%22toggl%22%20" target="_blank" rel="noopener noreferrer"&gt;Pin Change Interrupt example&lt;/a&gt; and use that as reference.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(You could also take a look at the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fexamples_bsp.html&amp;amp;anchor=examples_bsp_states" target="_blank" rel="noopener noreferrer"&gt;Board Support Package&lt;/a&gt;)&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>