Skip to content
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

allow visibility on current button handling state (for power management) #73

Closed
wants to merge 1 commit into from

Conversation

geeksville
Copy link

For my application (and some others?) I need to keep the CPU sleeping almost all of the time. Therefore polling on the current msec won't work while in that mode. This minor commit adds a bool so I can see if the button state machine is actively looking at a press sequence (in that case I don't suppress sleep).

If others want this you are welcome to it. Thanks for the nice lib. -kevin

@mathertel
Copy link
Owner

Thanks, I will add this to the next version (2.0.0.) that is currently prepared on branch 'improvements_95'

@mathertel mathertel closed this Jan 22, 2021
mathertel added a commit that referenced this pull request Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants