Skip to content

Change Ex1 to auto support both Button and Switch #1

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

Open
nseidle opened this issue Aug 7, 2019 · 0 comments
Open

Change Ex1 to auto support both Button and Switch #1

nseidle opened this issue Aug 7, 2019 · 0 comments

Comments

@nseidle
Copy link
Member

nseidle commented Aug 7, 2019

In general Ex1 should not require user to modify code. And since we have two devices with two different I2C addresses, Ex1 fails for half the users who don't read the comments (me).

Would be better to .begin() test for switch. And if that fails do a .begin() test for button. If that fails, then freeze. Otherwise, just work.

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

1 participant