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

clarify usage of Toggle::inputMode::input_pulldown versus setInverted #2

Open
JM-FRANCE opened this issue Nov 9, 2022 · 0 comments

Comments

@JM-FRANCE
Copy link

Hi

it's unclear how you would use setInputMode(Toggle::inputMode::input_pulldown) versus setInputInvert(true)

working exemple here with setInputInvert and messing around with the pin state after the begin (which means I overwrite likely what the class has done to the pin which requires intimate knowledge of the library to know in which order to do things)

https://wokwi.com/projects/347839208139784788

Request:

  • how would you use setInputMode() and not have to mess around in the code with pinMode?
  • improvement: possibility to establish the inputMode at constructor level
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