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

Unable to set pinMode to INPUT_PULLUP. #27

Open
JonasPhilbert opened this issue Jul 4, 2017 · 2 comments
Open

Unable to set pinMode to INPUT_PULLUP. #27

JonasPhilbert opened this issue Jul 4, 2017 · 2 comments

Comments

@JonasPhilbert
Copy link

When trying to set the input mode of a pin to "INPUT_PULLUP", strange behavior occurs.
In this case, we have the input connected to a simple toggle-switch, which, if PULLUP is set, always returns a LOW.

Looking through the prototype sketch, there seems to never be a reference to PULLUP, which might explain why it seems to be impossible to set the input type to PULLUP.

@CuriousCodingCanadian
Copy link

This happened to me as well. I hope to see a fix soon.

@hamsolo474
Copy link
Contributor

Hey guys, check out my fork.
https://github.com/hamsolo474/Python-Arduino-Command-API
I added the INPUT_PULLUP functionality for you, however I don't have an arduino to test this on any more.
If one of you could test this I'll submit a pull request

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

3 participants