Unable to set pinMode to INPUT_PULLUP.
JonasPhilbert opened this issue · 2 comments
JonasPhilbert commented
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 commented
This happened to me as well. I hope to see a fix soon.
hamsolo474 commented
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