<?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>LED works inverse with nrf_gpio_pin_set/clear</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8878/led-works-inverse-with-nrf_gpio_pin_set-clear</link><description>When I call nrf_gpio_pin_set(LED_1), the LED is turned off and when I call nrf_gpio_pin_clear(LED_1) it is turned on. Is this expected behaviour? I can&amp;#39;t find any schematics for my board so it&amp;#39;s not even possible to verify which way the LEDs are connected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Aug 2015 06:38:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8878/led-works-inverse-with-nrf_gpio_pin_set-clear" /><item><title>RE: LED works inverse with nrf_gpio_pin_set/clear</title><link>https://devzone.nordicsemi.com/thread/32658?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2015 06:38:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de8b2378-2c30-4943-9fdc-0430b004b3f5</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;changed the title to reflect your question. This is useful info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LED works inverse with nrf_gpio_pin_set/clear</title><link>https://devzone.nordicsemi.com/thread/32660?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2015 06:15:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c563b9a5-18fe-49a5-8aa6-b63571730ab2</guid><dc:creator>Wojciech Jasko</dc:creator><description>&lt;p&gt;Schematic should be on the bottom of your board or check define LEDS_INV_MASK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LED works inverse with nrf_gpio_pin_set/clear</title><link>https://devzone.nordicsemi.com/thread/32659?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2015 22:24:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d2651f7-2088-4643-b2ee-597934272e5e</guid><dc:creator>Carlos</dc:creator><description>&lt;p&gt;On the nRF51 DK all 4 LED&amp;#39;s anode are connected to VIO, so the behaviour your are getting is the expected. Find schematic files &lt;a href="https://www.nordicsemi.com/eng/nordic/download_resource/38675/5/10918048"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ledsnrf51.png" alt="LEDs on nRF51DK" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>