Python-Arduino-Command-API icon indicating copy to clipboard operation
Python-Arduino-Command-API copied to clipboard

Unable to set pinMode to INPUT_PULLUP.

Open JonasPhilbert opened this issue 7 years ago • 2 comments

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.

JonasPhilbert avatar Jul 04 '17 12:07 JonasPhilbert

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

CuriousCodingCanadian avatar Jun 06 '23 20:06 CuriousCodingCanadian

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

hamsolo474 avatar Jun 07 '23 15:06 hamsolo474