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

Add screen lock mechanism for touch screens #152

Closed
gkoh opened this issue Jan 3, 2025 · 2 comments · Fixed by #155
Closed

Add screen lock mechanism for touch screens #152

gkoh opened this issue Jan 3, 2025 · 2 comments · Fixed by #155
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@gkoh
Copy link
Owner

gkoh commented Jan 3, 2025

          > One other thing that might be worth investigating with the Core2 is some way to disable the touchscreen using the physical buttons. I know there's times when I'm out on location where I drop the remote in a pocket, so preventing erroneous touches would be useful

Oh, like a 'lock' button. I'll create a new issue to track this.

Originally posted by @gkoh in #150 (comment)

@gkoh
Copy link
Owner Author

gkoh commented Jan 4, 2025

This looks ... tricky.
The M5Core2 has 2 physical buttons which appeared hard-wired to power and reset.
Whilst we can kinda read them, there's a risk of accidental power off or reset instead 😐

Ugh, might need to learn from the smart phones: slide to lock/unlock

@gkoh
Copy link
Owner Author

gkoh commented Jan 4, 2025

This looks ... tricky. The M5Core2 has 2 physical buttons which appeared hard-wired to power and reset. Whilst we can kinda read them, there's a risk of accidental power off or reset instead 😐

Ugh, might need to learn from the smart phones: slide to lock/unlock

Actually, this is much simpler than I thought, the underlying M5 library can detect and distinguish double clicks on the power button (without removing power).

@gkoh gkoh linked a pull request Jan 4, 2025 that will close this issue
@gkoh gkoh self-assigned this Jan 4, 2025
@gkoh gkoh added the enhancement New feature or request label Jan 4, 2025
@gkoh gkoh added this to the v3.0.0 milestone Jan 4, 2025
@gkoh gkoh closed this as completed in #155 Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant