<?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>Zephyr GPIO write works but readback fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103986/zephyr-gpio-write-works-but-readback-fails</link><description>My device tree overlay GPIO section looks like this: 
 
 Note that I repurposing a GPIO that was used for an LED in the board&amp;#39;s device tree file. Also note that node numbers start from 1 and property numbers start from 0, so the delete-node and delete</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Jun 2025 06:34:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103986/zephyr-gpio-write-works-but-readback-fails" /><item><title>RE: Zephyr GPIO write works but readback fails</title><link>https://devzone.nordicsemi.com/thread/538346?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 06:34:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b12986b-98b9-4243-b5e5-8b51c2b1a38a</guid><dc:creator>ChriglSEI</dc:creator><description>&lt;p&gt;I think&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/104417/read-current-value-of-an-output-gpio-pin/449528"&gt;RE: Read current value of an OUTPUT gpio pin&lt;/a&gt;&amp;nbsp;&amp;nbsp;gives the correct answer without the need to include more libraries.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr GPIO write works but readback fails</title><link>https://devzone.nordicsemi.com/thread/447129?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2023 15:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce20ef0f-0e52-4e0e-ae0d-5593efbf8e04</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try using&amp;nbsp;&lt;span&gt;nrf_gpio_pin_out_read() instead.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Snippet:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;hal/nrf_gpio.h&amp;gt;


/**
 * @brief Function for reading the output level of a GPIO pin.
 *
 * @param pin_number Specifies the pin number to read.
 *
 * @return 0 if the pin output level is low. Positive value if pin output is high.
 */
 
bool high = nrf_gpio_pin_out_read(PIN_NUMBER);




&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>