<?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>Matter Light Bulb Change Default LED1 Usage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116622/matter-light-bulb-change-default-led1-usage</link><description>Hi All, 
 I am using &amp;#39; NRF SDK v2.7 + NRF5340 DK + VSCode &amp;#39; and cloned a official nrf &amp;#39; matter light bulb &amp;#39; sample. 
 My question is the default &amp;#39;matter light bulb&amp;#39; uses NRF5340 onboard LED1[p0.28] as various status and LED2[P0.29] as Light-Bulb[ON,OFF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Nov 2024 08:35:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116622/matter-light-bulb-change-default-led1-usage" /><item><title>RE: Matter Light Bulb Change Default LED1 Usage</title><link>https://devzone.nordicsemi.com/thread/512687?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2024 08:35:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32a2c28d-6b31-4ef7-9d15-144490bd36a1</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;My bad, I had the 0-indexing of LED numbers which is present on the nRF54L15DK fresh in my mind and not the 1-indexing from the nRF52/nRF53 devices there. I thought you were referring to the Light bulb imitating LED and not the status LED.&lt;/p&gt;
&lt;p&gt;Status LED and everything thats common in between the Matter samples can be&amp;nbsp; found in &amp;quot;&amp;lt;sdk&amp;gt;&lt;em&gt;\nrf\samples\matter\common\src\board&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;I recommend you start with board.cpp and .h.&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><item><title>RE: Matter Light Bulb Change Default LED1 Usage</title><link>https://devzone.nordicsemi.com/thread/512642?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2024 20:42:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34652e3a-f4b2-4b9c-a1c0-fd3081ff4ff9</guid><dc:creator>Jacky Ortega</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;That&amp;#39;s not related to my question in hand. I know I can use LED3(p0.30) instead of LED1(P0.29) by changing the overlay.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;My question and concern is related to LED 1(P0.28) which is somehow being used by &lt;strong&gt;matter light bulb&amp;nbsp; sample&amp;nbsp;&lt;/strong&gt;and I cant find how?.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The thing is I have another use case for Pin 0.28 and want to use it as per my own business logic.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note::&lt;/strong&gt;&lt;br /&gt;&lt;span&gt;My original question still remains.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter Light Bulb Change Default LED1 Usage</title><link>https://devzone.nordicsemi.com/thread/512596?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2024 13:57:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64fd660f-78f2-451e-a350-6f6b6d2473b5</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi Jacky,&lt;/p&gt;
&lt;p&gt;In the Light bulb sample, the LED is controlled by the pwm0-device, which is set to LED1. If you change the following in your overlay&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
	pwm0_default_alt: pwm0_default_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT1, 0, 29)&amp;gt;;
			nordic,invert;
		};
	};

	pwm0_sleep_alt: pwm0_sleep_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT1, 0, 29)&amp;gt;;
			low-power-enable;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
	pwm0_default_alt: pwm0_default_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT1, 0, 30)&amp;gt;;
			nordic,invert;
		};
	};

	pwm0_sleep_alt: pwm0_sleep_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT1, 0, 30)&amp;gt;;
			low-power-enable;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;you should see that the pwm peripheral now generates a signal that drives P0.30 (LED3) instead of P0.29 (LED1)&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><item><title>RE: Matter Light Bulb Change Default LED1 Usage</title><link>https://devzone.nordicsemi.com/thread/511742?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2024 18:21:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c15d17c-58f3-4e54-a9e0-e9742d843f08</guid><dc:creator>Jacky Ortega</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;&amp;nbsp; Yes it was just a typo.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;My original question still remains.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter Light Bulb Change Default LED1 Usage</title><link>https://devzone.nordicsemi.com/thread/511648?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2024 12:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ea8c68a-fb29-49b9-bae7-5909853fba8b</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Please see my default &lt;strong&gt;nrf53440dk_nrf5340_cpuapp.overlay&lt;/strong&gt;&lt;br /&gt;[/quote]
&lt;p&gt;Could you confirm if this is the name of the overlay or a typo? If it is the name of the overlay, could you rename it to &amp;quot;nrf5340dk_nrf5340_cpuapp.overlay&amp;quot;?&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>