thearn / Python-Arduino-Command-API

A Python library for communicating with Arduino microcontroller boards
415 stars 151 forks source link

Unable to set pinMode to INPUT_PULLUP. #27

Open JonasPhilbert opened 7 years ago

JonasPhilbert commented 7 years ago

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 1 year ago

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

hamsolo474 commented 1 year ago

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