Skip to content

How to know the state of input when PushEventButton::CAPTUREBOTH is notified #5

@J-R-V

Description

@J-R-V

I am using the library to detect transitions in the input using Arduino Nano EVERY by creating the the object as PushEventButton and it works fine, but it's necessary to know how the event has been produced (fall / rise) or, by the way, the actual state of the button after receive the capture event.

Main purpose is to trace the time (correlate) when the user action was done (press for example) and how much time was delayed to the next action (release for example). In both cases, the state is captured but I'm not being able to know, how to get which type of transition (rise or fall) has been done.

So, ... is possible to get the transition type (rise / fall) performed or, by the way, the state of the input (high / low) after the capture?.

Thanks in advance.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions