Hi,
i'm trying to make an example on python in order to TURN ON and OFF the Output O_1 of RevPi DIO when the Input I_1 is rising.
I see this example https://revpimodio.org/en/bennis-run-th ... -mainloop/
but the Output never go ON.
Please, help me!
Tks
RevPi DIO - Turn ON and OFF the Output O_1
Moderator: RevPiModIO
Re: RevPi DIO - Turn ON and OFF the Output O_1
Hi Tks, I have moved your post to the RevPiModIO forum as there are the specialists which may guide you.
- RevPiModIO
- KUNBUS
- Posts: 322
- Joined: 20 Jan 2017, 08:44
- Contact:
Re: RevPi DIO - Turn ON and OFF the Output O_1
Hi sixwac!
Do you have some sour code to check?
Maybe you are not using autorefresh=True or did not register an event to that input - Or not going to .mainloop()
You could start with an example without threads like https://revpimodio.org/en/events-in-the-mainloop/
Or a cyclic example like that one https://revpimodio.org/en/cyclic-with-python/
Sven
Do you have some sour code to check?
Maybe you are not using autorefresh=True or did not register an event to that input - Or not going to .mainloop()
You could start with an example without threads like https://revpimodio.org/en/events-in-the-mainloop/
Or a cyclic example like that one https://revpimodio.org/en/cyclic-with-python/
Sven
python3-RevPiModIO - https://revpimodio.org/ || Der RevPi ist das Beste, was passieren konnte!