<?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 - How to digital read the pin which is used as OUTPUT.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84948/zephyr---how-to-digital-read-the-pin-which-is-used-as-output</link><description>Hello. 
 I am new to Zephyr, I know how to digital read the pin which is used as INPUT 
 
 #define SW0_NODE DT_ALIAS (sw0) 
 static const struct gpio_dt_spec DOUTINPUT = GPIO_DT_SPEC_GET_OR ( SW0_NODE , gpios,{ 0 }); 
 
 
 ret = gpio_pin_configure_dt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 19 Feb 2022 15:06:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84948/zephyr---how-to-digital-read-the-pin-which-is-used-as-output" /><item><title>RE: Zephyr - How to digital read the pin which is used as OUTPUT.</title><link>https://devzone.nordicsemi.com/thread/353986?ContentTypeID=1</link><pubDate>Sat, 19 Feb 2022 15:06:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a720e499-e077-42c7-ae6e-98476904de53</guid><dc:creator>Neeraj Dhekale</dc:creator><description>&lt;p&gt;By using&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#dcdcaa;"&gt;gpio_pin_get&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;(dev,&lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;PIN&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>