Closed chriski777 closed 4 years ago
Hi,
I ran into this issue where I'm trying to set the pin modes for two pins that correspond to the same pin number but are different types of pins (e.g: digital PWM pin 4 and analog input pin 4).
self._board.set_pin_mode(4, PyMata.PWM, PyMata.DIGITAL) self._board.set_pin_mode(4, PyMata.INPUT, PyMata.ANALOG)
However, once I run these two lines, it seems that the second line simply overwrites the first line and I am unable to use the digital PWM pin.
I can confirm what you are seeing. I will investigate and will provide a fix within the next few days.
Fixed with release 2.20. Thanks for reporting the issue.
works great now. Thanks!
Hi,
I ran into this issue where I'm trying to set the pin modes for two pins that correspond to the same pin number but are different types of pins (e.g: digital PWM pin 4 and analog input pin 4).
However, once I run these two lines, it seems that the second line simply overwrites the first line and I am unable to use the digital PWM pin.