aeon32 / ESTC2021-project

ESTC-2021 main project
0 stars 0 forks source link

Implement double click using gpiote #7

Closed aeon32 closed 3 years ago

aeon32 commented 3 years ago

Change the button behavior: now double-click toggle blinking.

For example:

No blinking + double click => start smooth blinking
Smooth blinking + double click => freeze smooth blinking (save LED state)

To setup IRQ handler for GPIO use module GPIOTE. Useful functions:

nrfx_gpiote_init
nrfx_gpiote_in_init
nrfx_gpiote_in_event_enable