<?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>Use GPIO from Arduino Header using Zephyr on nrf52840DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84005/use-gpio-from-arduino-header-using-zephyr-on-nrf52840dk</link><description>Hello, I am new here and I hope to not duplicate any other similar post (to be honest I have search a lot before writing). I am working with nrf52840DK, I have used blinky Zephyr example successfully. I would like to use one of the GPIOs from the arduino_header</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 09 Mar 2025 09:58:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84005/use-gpio-from-arduino-header-using-zephyr-on-nrf52840dk" /><item><title>RE: Use GPIO from Arduino Header using Zephyr on nrf52840DK</title><link>https://devzone.nordicsemi.com/thread/526453?ContentTypeID=1</link><pubDate>Sun, 09 Mar 2025 09:58:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b9c7c27-2a1e-4dcc-b569-1a2cf8af6e0b</guid><dc:creator>btemesi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When you are defining a new node, you can use the gpio-map such as:&lt;/p&gt;
&lt;p&gt;`&amp;lt;&amp;amp;arduino_header 16 GPIO_ACTIVE_LOW&amp;gt;;`&lt;/p&gt;
&lt;p&gt;Where, 16 is the list number followed by the flag(s). I wouldn&amp;#39;t re-define it (so no &amp;amp;gpio0 4).&lt;/p&gt;
&lt;p&gt;You can find more documentation here:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.zephyrproject.org/latest/hardware/porting/shields.html"&gt;https://docs.zephyrproject.org/latest/hardware/porting/shields.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;which also points to documentation:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/devicetree-org/devicetree-specification/blob/4b1dac80eaca45b4babf5299452a951008a5d864/source/devicetree-basics.rst#nexus-nodes-and-specifier-mapping"&gt;github.com/.../devicetree-basics.rst&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and an example here:&lt;/p&gt;
&lt;p&gt;&amp;lt;your-sdk-location&amp;gt;/&amp;lt;sdk-version&amp;gt;/zephyr/samples/sensor/bme280/arduino_spi.overlay&lt;/p&gt;
&lt;p&gt;This is a similar sensor (BME280) example as in the dev Academy - nrf Connect SDK Fundamentals&lt;/p&gt;
&lt;p&gt;I hope this helps,&lt;/p&gt;
&lt;p&gt;Barna&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use GPIO from Arduino Header using Zephyr on nrf52840DK</title><link>https://devzone.nordicsemi.com/thread/418914?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 00:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9f3eb52-a776-4ab5-a4be-2d726e53aa60</guid><dc:creator>Jeffrey Haynes</dc:creator><description>&lt;p&gt;This is a terrible answer.&amp;nbsp; I&amp;#39;ve been doing zephyr programming for over a year and this stuff is still not straightforward.&amp;nbsp; Please just answer the question next time&amp;nbsp;or if you don&amp;#39;t know then say nothing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use GPIO from Arduino Header using Zephyr on nrf52840DK</title><link>https://devzone.nordicsemi.com/thread/349596?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 15:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66af6b1f-cbc8-4cc3-8249-2a5d2658badb</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As a beginner, I suggest you take a look at our &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started"&gt;Getting Started Guide.&lt;/a&gt; This explains in detail (in 4 parts) about the nRF Connecct SDK and Zephyr Programming basics.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, you can refer the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/zephyr/guides/porting/shields.html#:~:text=overlay%0A%20%20%20%20%20%20%20%20%E2%94%94%E2%94%80%E2%94%80%20%3Cboard%3E.defconfig-,GPIO%20nexus%20nodes,-GPIOs%20accessed%20by"&gt;GPIO nexus nodes&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>