Skip to content

Conversation

Links2004
Copy link
Contributor

@Links2004 Links2004 commented Sep 15, 2025

This fixes the Rotary Encoder Button, currenlty its not working at all.

Currently the action ROTARY_ACTION_PRESSED is only triggerd with a IRQ on RISING, which results in nothing since the function detects the "not longer" pressed button with no press detection before --> no action.

the ROTARY_ACTION_PRESSED implementation needs to be called on both edges (on press and release of the button)

changing the interupt setting to CHANGE fixes the problem.

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • Heltec (Lora32) V3
    • LilyGo T-Deck
    • LilyGo T-Beam
    • RAK WisBlock 4631
    • Seeed Studio T-1000E tracker card
    • Other (please specify below)

this fixes the Rotary Encoder Button, currenlty its not working at all.
Currently the action `ROTARY_ACTION_PRESSED` is only triggerd with a IRQ on RISING, which results in nothing since the function detects the "not longer" pressed button --> no action.

the `ROTARY_ACTION_PRESSED` implementation needs to be called on both edges (on press and release of the button)

changing the interupt setting to `CHANGE` fixes the problem.
@thebentern thebentern added the bugfix Pull request that fixes bugs label Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Pull request that fixes bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants