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

bsp_init() configure pull up

Hello i've implemented a push button detection with the bsp library but i can't fin a way to configure a pullup with it : 

void configure_button()
{
    uint32_t err_code;

    err_code = bsp_init(BSP_INIT_BUTTONS, bsp_evt_handler);
    APP_ERROR_CHECK(err_code);

    err_code = bsp_event_to_button_action_assign(BTN_ID_SLEEP,
                                                 BSP_BUTTON_ACTION_LONG_PUSH,
                                                 BSP_EVENT_SLEEP);
		APP_ERROR_CHECK(err_code);

    err_code = bsp_event_to_button_action_assign(BTN_ID_SLEEP,
                                                 BSP_BUTTON_ACTION_RELEASE,
                                                 BSP_EVENT_ADVERTISING_START);
		APP_ERROR_CHECK(err_code);

}

When i check the tention on the input it's at 0V when the button is pressed but not at 2.9V when it's released, how can i configure a pull up with bsp ?

Is there an other way to do this ?

Thank you 

Parents Reply Children
No Data
Related