-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seperate callbacks for button-down and button-up instead only PUSHP? #35
Comments
Hello,
First i call the release and after the push. |
How to enable the interrupt output? Could you provide an example? <3
FattoreSaimon ***@***.***> schrieb am Mi., 11. Sept. 2024,
21:45:
… Hello,
This can be only of problem of interrupt calling order
if (_stat & PUSHR) {
eventCaller (&onButtonRelease);
}
if (_stat & PUSHP) {
eventCaller (&onButtonPush);
First i call the release and after the push.
Did you also enable the interrupt output of the push?
—
Reply to this email directly, view it on GitHub
<#35 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD3W642XPP7LCO3A3I34Y3ZWCMXBAVCNFSM6AAAAABNY3EHCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBUGU3DSNRTGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
There is an example here, i assume you are using the I2C encoder V2
Or manually with the command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The PUSHP event, which is supposed to trigger on button press in the library, is only fired when the button is released, rather than immediately when it is pressed. I need the button press event to trigger as soon as the button is physically pressed, without waiting for the release. With this function, i could implement a function for a long-press that doesn't trigger the short-click.
The text was updated successfully, but these errors were encountered: