This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Mesh Light Switch Example on Custom Board

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 . Can you suggest me how can we do it. 

2.If the LED on my custom board is RGB how can we control the RGB individual pins from client?. 

Thanks in advance

Mahesh

Parents
  • Hi,

    You have not modified anything other than the value of BSP_ LED_0 in the example? Do you have the correct button and LED number for your custom board?

    When running in debug mode, do you get any logs when the button is pressed?

    Something like this:

    <t:     251256>, main.c,  236, Button 1 pressed
    <t:     251259>, main.c,  259, Sending msg: ONOFF SET 1
    <t:     251262>, main.c,  304, Publication not configured for client 1

    2.If the LED on my custom board is RGB how can we control the RGB individual pins from client?. 

    You can use PWM to control the RGB. Maybe this thread can be of help.

Reply
  • Hi,

    You have not modified anything other than the value of BSP_ LED_0 in the example? Do you have the correct button and LED number for your custom board?

    When running in debug mode, do you get any logs when the button is pressed?

    Something like this:

    <t:     251256>, main.c,  236, Button 1 pressed
    <t:     251259>, main.c,  259, Sending msg: ONOFF SET 1
    <t:     251262>, main.c,  304, Publication not configured for client 1

    2.If the LED on my custom board is RGB how can we control the RGB individual pins from client?. 

    You can use PWM to control the RGB. Maybe this thread can be of help.

Children
No Data
Related