Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

set_pin_mode overwrites previous pin state value #45

Closed
chriski777 opened this issue Sep 17, 2019 · 3 comments
Closed

set_pin_mode overwrites previous pin state value #45

chriski777 opened this issue Sep 17, 2019 · 3 comments
Labels

Comments

@chriski777
Copy link

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.

@MrYsLab MrYsLab added the bug label Sep 17, 2019
@MrYsLab
Copy link
Owner

MrYsLab commented Sep 17, 2019

I can confirm what you are seeing. I will investigate and will provide a fix within the next few days.

@MrYsLab
Copy link
Owner

MrYsLab commented Sep 17, 2019

Fixed with release 2.20. Thanks for reporting the issue.

@MrYsLab MrYsLab closed this as completed Sep 17, 2019
@chriski777
Copy link
Author

works great now. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants