<?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>Mesh Light Switch Example on Custom Board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75711/mesh-light-switch-example-on-custom-board</link><description>Hi, 
 I am running the Mesh Light Switch Example Code on My custom board (nRF52840) by changing the BSP_ LED_0 from 13 to 33(LED pin no on my custom board) pin number,but it is not controlling from the client when button is pressed. Client is nRF52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 May 2021 16:08:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75711/mesh-light-switch-example-on-custom-board" /><item><title>RE: Mesh Light Switch Example on Custom Board</title><link>https://devzone.nordicsemi.com/thread/312702?ContentTypeID=1</link><pubDate>Mon, 31 May 2021 16:08:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84fadf9a-c494-4e04-bf4c-73ac364ea799</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You have not modified anything other than the value of&amp;nbsp;&lt;span&gt;BSP_ LED_0 in the example?&amp;nbsp;&lt;/span&gt;&lt;span&gt;Do you have the correct button and LED number for your custom board?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When running in debug mode, do you get any logs when the button is pressed? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Something like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;t:     251256&amp;gt;, main.c,  236, Button 1 pressed
&amp;lt;t:     251259&amp;gt;, main.c,  259, Sending msg: ONOFF SET 1
&amp;lt;t:     251262&amp;gt;, main.c,  304, Publication not configured for client 1&lt;/pre&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]2.If the LED on my custom board is RGB how can we control the RGB individual pins from client?.&amp;nbsp;[/quote]
&lt;p&gt;You can use PWM to control the RGB. Maybe this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/19013/why-am-i-having-problems-driving-an-rgb-led-with-pwm-from-nrf52" rel="noopener noreferrer" target="_blank"&gt;thread&lt;/a&gt;&amp;nbsp;can be of help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>