Page 1 of 1

RevPi DIO - Turn ON and OFF the Output O_1

Posted: 23 Dec 2019, 22:00
by sixwac
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

Re: RevPi DIO - Turn ON and OFF the Output O_1

Posted: 07 Jan 2020, 11:45
by dirk
Hi Tks, I have moved your post to the RevPiModIO forum as there are the specialists which may guide you.

Re: RevPi DIO - Turn ON and OFF the Output O_1

Posted: 07 Jan 2020, 12:13
by RevPiModIO
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