<?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>NRF5340 io pin control</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124713/nrf5340-io-pin-control</link><description>I modified the blinky sample to toggle io pin 1.05 While the app does compile and the originally led does flaash, I&amp;#39;m unable to control any other io pins. Using NRF5340 NRF SDK V2.6.0 NRF Connect SDK Tool Chain V2.6.2 ubx_evknorab12_ nrf5340_cpuapp&amp;#39; #define</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Oct 2025 08:15:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124713/nrf5340-io-pin-control" /><item><title>RE: NRF5340 io pin control</title><link>https://devzone.nordicsemi.com/thread/550431?ContentTypeID=1</link><pubDate>Thu, 02 Oct 2025 08:15:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5474c77-3df1-4f0f-a62e-86da401c18f2</guid><dc:creator>DanielNG</dc:creator><description>&lt;p&gt;Hi, nrf_gpio_cfg_output and nrf_gpio_pin_toggle are void functions and do not return anything&lt;br /&gt;Please refer to&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrfx-apis-latest/page/group_nrf_gpio_hal.html#gaa417905af0907e63baae651c1679d01a"&gt;nrfx: GPIO HAL&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrfx-apis-latest/page/group_nrf_gpio_hal.html#ga01229c1afac385b135cb5441814de618"&gt;nrfx: GPIO HAL&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;Just use it like this&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define DBG_PIN NRF_GPIO_PIN_MAP(1,5)
nrf_gpio_cfg_output(DBG_PIN); // Configure as output pin
nrf_gpio_pin_toggle(DBG_PIN); // Toggle the pin&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>