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

Button Configuration

Hi,

I need some details about the button configuration

To perform a Single Button configuration like

One click (BUTTON_RELEASE)

Double Click (BUTTON_RELEASE)

Button Press for 3 seconds

Button Press for 7 seconds.

all these configuration should apply for only one BUTTON

if this is case which one is better

app_button.c or bsp.c

2. how do i change the wake up button action.

   i.e -   by default while the system off state . when the button is pressed the system wake up. instead of that i need the

wake up action to be change it to BUTTON _RELEASE .

3. or wake up is to be done after the 3seconds of long press of a button.

Parents
  • i have a question that my application run with bootloader and hardware i have only one button.

    If i wakeup the device with pressing the button .it enter into DFU because that pin assigned as DFU button

    so. is it possible to have CONNECTION LIKE THIS

    P0.12 as OUTPUT

    P0.13 as INPUT

    when the controller receive command from the app as DFU

    the Pin

    P0.12 will get high

    and P0.13 will get high and enter into DFU process

    this will work ?

Reply
  • i have a question that my application run with bootloader and hardware i have only one button.

    If i wakeup the device with pressing the button .it enter into DFU because that pin assigned as DFU button

    so. is it possible to have CONNECTION LIKE THIS

    P0.12 as OUTPUT

    P0.13 as INPUT

    when the controller receive command from the app as DFU

    the Pin

    P0.12 will get high

    and P0.13 will get high and enter into DFU process

    this will work ?

Children
Related