<?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>nrf_gpio_pin_read() always returns 0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33088/nrf_gpio_pin_read-always-returns-0</link><description>on the nrf52832 I am configuring pin 10 as an input. There is either 0 or 3.1V on the pin depending on whether a charger is connected to the board. 
 
 When I read the state of the ping with nrf_gpio_pin_read(), the value is always 0, even when I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Apr 2018 06:04:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33088/nrf_gpio_pin_read-always-returns-0" /><item><title>RE: nrf_gpio_pin_read() always returns 0</title><link>https://devzone.nordicsemi.com/thread/126961?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 06:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9559c9d-29f2-4da7-bfec-96554f951d45</guid><dc:creator>Kerry Calvert</dc:creator><description>&lt;p&gt;Well, actually it did fix it.&amp;nbsp; I had been mucking around with the pin setup and had tried making it a watcher.&amp;nbsp; Removing that in conjunction with the CONFIG_NFCT... fixed it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;THANKS!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_gpio_pin_read() always returns 0</title><link>https://devzone.nordicsemi.com/thread/126960?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 05:57:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c9223c9-62ef-431b-a944-3aa0b6e4918b</guid><dc:creator>Kerry Calvert</dc:creator><description>&lt;p&gt;Thanks, but adding that compile flag did not solve the issue.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_gpio_pin_read() always returns 0</title><link>https://devzone.nordicsemi.com/thread/126958?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 05:42:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:061f72f2-7d45-455d-bd8d-341093b3b56d</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;have you set pin 10 NOT to be an NFC pin? Pins 9 and 10 are NFC by default. Please search the forums for&amp;nbsp;&lt;span&gt;CONFIG_NFCT_PINS_AS_GPIOS. This seems to come up every week.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>