You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is any change to turn on/off multiple pin with the same mqtt topic?
RPi.GPIO module should be able to manage it chan_list = [11,12] # add as many channels as you want! # you can tuples instead i.e.: # chan_list = (11,12) GPIO.setup(chan_list, GPIO.OUT)
The text was updated successfully, but these errors were encountered:
It's a good idea, but as far as I'm aware, your PR would break compatibility with all of the other output modules, such as pcf8574 which has a set_pin() implementation of:
As you can see, the pin value cannot be a list in this example.
In order to implement this, we'd need to establish which modules' underlying libraries are able to take lists of pins and set them all at once, then enable this functionality on just these modules.
As it stands, this is a relatively low priority for me compared to some of the other things on my list, so I wouldn't work on it any time soon, but pull requests to the effect are welcome.
I'll close the existing PR as it stands, but keep this issue open to track any progress.
There is any change to turn on/off multiple pin with the same mqtt topic?
RPi.GPIO module should be able to manage it
chan_list = [11,12] # add as many channels as you want! # you can tuples instead i.e.: # chan_list = (11,12) GPIO.setup(chan_list, GPIO.OUT)
The text was updated successfully, but these errors were encountered: