Pyfirmata Analog as Output or Digital?

Trying to set the Analog pins to digital outputs or just outputs instead of inputs using Pyfirmata but I am having trouble and I have not been able to find a good resource online that worked. Does anyone have any luck with this?

1 Like

What happens if you simply treat them as if they were digital pins as, after all, that is what they are ?

It doesn't output anything from what I can tell.

1 Like

I know very little about Pyfirmata but how do you set an analogue pin to be a digital input ? Is there a special syntax for doing it compared to setting a purely digital pin to input ? For instance, do you refer to the pins by number or their A* name ?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.