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

Long press to shut down #83

Closed
mortenfyhn opened this issue Jan 29, 2024 · 2 comments
Closed

Long press to shut down #83

mortenfyhn opened this issue Jan 29, 2024 · 2 comments

Comments

@mortenfyhn
Copy link
Owner

I've long resisted having another shutdown button or method than just "wait for it to time out".

But a long press might be good. Then anyone who wants to be able to immediately shut down can, without this affecting the UI/UX for everyone else.

@mortenfyhn
Copy link
Owner Author

  • same logic as today's tare?
  • start taring immediately even if doing a long press
  • check the button class state for each iteration (no interrupt here)
  • class logic can then determine if button has been pressed at every checkpoint for the last X duration

@mortenfyhn
Copy link
Owner Author

I have something that kind of works now. But:

  • after the button is held down and the scales sleep, the interrupt must become a no-op for a little while

otherwise letting go of the button very easily wakes it right up again, because of bouncing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant