Dear
I have changed light_switch server example of " nrf5_SDK_for_Mesh_v4.0.0_src" from PCA10056 to PCA10059. All function of the code works well except button.
For button, I modified something below:
- pca10059.h
// There is only one button for the application
// as the second button is used for a RESET.
#define BUTTONS_NUMBER 4
#define BUTTON_1 NRF_GPIO_PIN_MAP(1,6)
#define BUTTON_2 NRF_GPIO_PIN_MAP(1,2)
#define BUTTON_3 NRF_GPIO_PIN_MAP(1,5)
#define BUTTON_4 NRF_GPIO_PIN_MAP(1,3)
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP
#define BUTTONS_ACTIVE_STATE 0
#define BUTTONS_LIST { BUTTON_1,BUTTON_2,BUTTON_3,BUTTON_4, }
#define BSP_BUTTON_0 BUTTON_1
#define BSP_BUTTON_1 BUTTON_2
#define BSP_BUTTON_2 BUTTON_3
#define BSP_BUTTON_3 BUTTON_4
#define BSP_SELF_PINRESET_PIN NRF_GPIO_PIN_MAP(0,19)
#define HWFC true
- simple_hal.h
/** Boards with user buttons */
#define BUTTON_BOARD (defined(BOARD_PCA10059) || defined(BOARD_PCA10040) || defined(BOARD_PCA10028) || defined(BOARD_PCA10056) || defined(BOARD_PCA10100))
Building them was successful, Flashing the code to dongle was successful. When push the button(SW1) on dongle, nothing happened(In PCA10056, Push button1, the led should turn on or turn off)
Did I miss anything or something wrong I did?
Thanks,
Di-Sheng