Detect click and double click after deep sleep

Hello

  When nrf52832 wakes up from a deep sleep, some times calling nrf_gpio_pin_latch_get does not return the button in pressed state. Perhaps it is some timing issue.

  I would like to know what is the best way to detect a simple or a  double click when waking from a deep sleep;

  Thank you in advance 

Parents Reply
  • I am using Zephyr, and even with interrupts enabled, I am sometimes experiencing issues where interrupt requests are not being handled as expected. Specifically, I have observed that the interrupt handler is not being called when an interrupt occurs, and as a result, important tasks are not being executed in a timely manner. This behavior seems to occur sporadically, and I have been unable to determine a specific pattern or trigger for when it happens.

    Best regards, Marcelo

Children
No Data
Related