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

is buttons_leds_init assigned three buttons at once?

HI,EVERYONE,

NICE TO MEET YOU,

i wanna know that if the buttons_leds_init assigned three buttons at once.

And i noticed that the function name is 'advertising_buttons_configure' .

Is that means these three button just for advertising ?

How to judge that the pushed button(e.g. key0) for advertising or my own usage?

Thank you Very Much.

Parents
  • Hi,

    The number of buttons configured with app_button_init is equal to BUTTONS_NUMBER, but the bsp only uses two. If you are going to use the buttons for your project I would recommend to not use the bsp module as this can be complicated. Define BSP_DEFINES_ONLY and BSP_SIMPLE to avoid using bsp module. Then you can use app_button to configure the buttons as you like.

    Ole

Reply
  • Hi,

    The number of buttons configured with app_button_init is equal to BUTTONS_NUMBER, but the bsp only uses two. If you are going to use the buttons for your project I would recommend to not use the bsp module as this can be complicated. Define BSP_DEFINES_ONLY and BSP_SIMPLE to avoid using bsp module. Then you can use app_button to configure the buttons as you like.

    Ole

Children
Related