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

ESP Button For Multiple outputs #1

Open
SaajanMaster opened this issue Jul 8, 2020 · 1 comment
Open

ESP Button For Multiple outputs #1

SaajanMaster opened this issue Jul 8, 2020 · 1 comment

Comments

@SaajanMaster
Copy link

How will i be able to connect multiple outputs with respective buttons?
i've tried multiple ways. but it is not working properly. can you suggest the way ahead?

@Mixiaoxiao
Copy link
Owner

Use ESPButton.add(id, pin, pin_down_digital); to add all your buttons and give them different id. (You can use the pin number as its idsimply)
When one of your buttons is clicked, you can konw which one is clicked by checking the id in callback.

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