<?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>Configuring a GPIO pin through overlay</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110125/configuring-a-gpio-pin-through-overlay</link><description>I am wondering If there&amp;#39;s any example to demonstrate how I can configure a pin on the nRF52840DK through an overlay. I have manipulated the board device tree and replaced the LED pin number with one of the DK&amp;#39;s pin and I was able to use the pin through</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Apr 2024 12:05:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110125/configuring-a-gpio-pin-through-overlay" /><item><title>RE: Configuring a GPIO pin through overlay</title><link>https://devzone.nordicsemi.com/thread/478307?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 12:05:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c80a6177-3729-4fae-a3a6-1e59bbc11258</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, there are multiple topics/samples in our academy course that showcases how to modify various board files through overlays to change for instance which GPIO a peripheral should use, for instance modify the led0 node to use LED2 instead of LED1. Among them are lesson 3, exercise 2 in our fundamentals course:&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-3-elements-of-an-nrf-connect-sdk-application/topic/exercise-2/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-3-elements-of-an-nrf-connect-sdk-application/topic/exercise-2/&lt;/a&gt;, and Lesson 4, exercise 2 in our intermediate course&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-4-pulse-width-modulation-pwm/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-4-pulse-width-modulation-pwm/&lt;/a&gt;&amp;nbsp;which I&amp;#39;ve created that also showcases how to modify an existing device and to create your own device using a device binding.&lt;/p&gt;
&lt;p&gt;In addition there&amp;#39;s the documentation for pin control and how to drive a GPIO pin directly&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/configuring_app/hardware/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/configuring_app/hardware/index.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me know if this is enough to get you going and if it answers your questions&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>