Hi,
I am working with the bsp.c functions. One of the actions is BSP_BUTTON_ACTION_PUSH, which the value is 1. I would like to know at which electrical signal it is related : is it a up to down or down to up ?
I am working with SDK 15.2.
Hi,
I am working with the bsp.c functions. One of the actions is BSP_BUTTON_ACTION_PUSH, which the value is 1. I would like to know at which electrical signal it is related : is it a up to down or down to up ?
I am working with SDK 15.2.
is it a up to down or down to up
That is configurable in the board's header file: BUTTONS_ACTIVE_STATE
Edit: On the DKs, the buttons are usually active low.
Hi Turbo J, thanks for you fast answer.
My BUTTONS_ACTIVE_STATE is at 1. So that mean that my push button is active when i come from low to high ?
Do you know where i can find this information?
I think that it is that.
From the doc :
" The buttons are active low, meaning the input will be connected to ground when the button is activated. The buttons have no external pull-up resistor, so to use the buttons the P0.13–P0.16 pins must be configured as an input with an internal pull-up resistor. "