<?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 read data from GPIO pin?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92437/how-to-read-data-from-gpio-pin</link><description>I am having a N20 Micro Gear Motor with Encoder, I want to read data of c1 and c2 using GPIO pins. Any specificAPI, method or suggestion for this? 
 I am using nRF5340 along with N20 Micro gear motor, I want to control motor direction, and rotate the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Sep 2022 21:30:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92437/how-to-read-data-from-gpio-pin" /><item><title>RE: How to read data from GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/388649?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 21:30:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bc2c590-5d1f-4156-b515-fcfd267daa6f</guid><dc:creator>Harsh Jain`</dc:creator><description>&lt;p&gt;I need to read the input pin on every rising edge. Also, output set and clear is not necessarily required here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read data from GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/388647?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 21:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a20c813-66ac-4f98-a727-3e5f14f0144f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I think the implementation here will depend much on how fast you need to count and how fast you expect to set/clear the output.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read data from GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/388591?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 13:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e339fb14-9c9c-4c0a-bbdd-04dc8c76b602</guid><dc:creator>Harsh Jain`</dc:creator><description>&lt;p&gt;Actually I need to write code for a counter. I.e. if on PinX an rising edge comes, I will increase the counter by 1.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any reference for this code. I know, I need to configure some pins as output pin and then set some callback functions which will be called whenever a system gets a rising edge on a particular pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read data from GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/388589?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 13:36:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a57877c-b266-4fc7-9ef8-93c724bd1d80</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can find the GPIO API doc here : &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/gpio.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/gpio.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And you have the &amp;quot;Button&amp;quot; sample demonstrating how to use the APIs here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/basic/button/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/basic/button/README.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>