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 single-click, double-click and long-press events #1

Open
Misiu opened this issue May 27, 2019 · 2 comments
Open

add single-click, double-click and long-press events #1

Misiu opened this issue May 27, 2019 · 2 comments

Comments

@Misiu
Copy link

Misiu commented May 27, 2019

It would be awesome to have 3 types of events that could be used, similar to AWS IoT Button
This way we could assign more actions and instead of 3 devices we could use one 🙂

@Merlin04
Copy link

The way this works is that it restarts the board whenever you click the button, so sadly that wouldn't work without making it consume way more power.

@Misiu
Copy link
Author

Misiu commented Jul 23, 2019

@Merlin04 there is an option to detect a double-click using, for example, this code. I'm not sure about long-press.
AWS IOT button battery lasts about 2000 clicks (see FAQ), so I guess they have an option to save the battery somehow.

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

No branches or pull requests

2 participants