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

Added new index property. #34

Closed

Conversation

MasterOfPuppets
Copy link

Nice to have, when using an array of Button2 instances which share a callback function.

Nice to have, when using an array of Button2 instances which share a callback function.
@LennartHennigs
Copy link
Owner

LennartHennigs commented Mar 26, 2022

Hey Paulo,
you want to differentiate buttons in a single handler, correct?
When you take a look at MultipleButtons.ino there I differentiate the buttons via the provided button parameter. Is this not sufficient?

In your pull request you add an ID which you have to enter manually.
If you need an ID wouldn't it be nicer if it were to be auto generated?
But then again, is that different from the button parameter provided for the button handler as you could use it, too?

Cheers
l.

@MasterOfPuppets
Copy link
Author

MasterOfPuppets commented Mar 26, 2022 via email

@LennartHennigs
Copy link
Owner

LennartHennigs commented Mar 26, 2022 via email

@LennartHennigs
Copy link
Owner

Just pushed changed. there is now a getID() and setID()function. Will release it as a new version after some more changes.

@MasterOfPuppets
Copy link
Author

MasterOfPuppets commented Apr 4, 2022 via email

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