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

How to add custom button using BSP?

Hello,

How to ass custom button using BSP? In the default setting, there are only 4 buttons. But my custom board has more than 4 buttons. How to add more button using BSP?? I increase "BUTTONS_NUMBER" and corresponding other values also, like BUTTON_x, BSP_BUTTON_x... But think I've done right, But I got error(NRF_ERROR_INVALID_STATE) from "bsp_init".

Do I have to modify other file also?? Or there is some limit of the number of buttons. Thank you.

Parents
  • With a custom board you will need to modify the board files.

    You can find the board files under:

    \SDK_INSTALL_FOLDER\examples\bsp
    

    When creating a new board file, simply copy the pca10028.h file, rename it, and modify it after your requirements. Then you have to modify boards.h to support your new file, and add a new define that you can specify in the Keil options to include your modified file.

Reply
  • With a custom board you will need to modify the board files.

    You can find the board files under:

    \SDK_INSTALL_FOLDER\examples\bsp
    

    When creating a new board file, simply copy the pca10028.h file, rename it, and modify it after your requirements. Then you have to modify boards.h to support your new file, and add a new define that you can specify in the Keil options to include your modified file.

Children
Related