Is it possible to connect to a RPis GPIO pin with gpiozero remotely WITHOUT changing a pins state when connecting? #1102
Replies: 1 comment
-
I've just had a bit of a rummage in the gpiozero code, and it looks like when you construct an AFAIK the only way of "fixing" this would be a big refactoring of https://gpiozero.readthedocs.io/en/latest/api_pins.html which doesn't really seem feasible, so I wonder if you might need to fix this by using https://abyz.me.uk/rpi/pigpio/python.html directly instead of using gpiozero? 🤷 |
Beta Was this translation helpful? Give feedback.
-
Is it possible to connect to a RPis GPIO pin with gpiozero remotely WITHOUT changing a pins state when connecting?
I have a relay connected to pin26.
When I use this command to connect:
import gpiozero
from gpiozero.pins.pigpio import PiGPIOFactory
factory = PiGPIOFactory(host='PI IP ADDRESS')
pin = gpiozero.OutputDevice(26, active_high=False, initial_value=None, pin_factory=factory)
I have no problem:
The problem I have is that it very briefly resets the pin when connecting to it.
So if the pin is high, and the relay active, when I remotely connect it will reset the pin then return it.
Please let me know if I've described the problem badly.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions