RevPi DIO - Turn ON and OFF the Output O_1

Moderator: RevPiModIO

Post Reply
sixwac
Posts: 2
Joined: 23 Dec 2019, 14:50
Answers: 0

RevPi DIO - Turn ON and OFF the Output O_1

Post 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
User avatar
dirk
KUNBUS
Posts: 1924
Joined: 15 Dec 2016, 13:19
Answers: 4

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

Post by dirk »

Hi Tks, I have moved your post to the RevPiModIO forum as there are the specialists which may guide you.
User avatar
RevPiModIO
KUNBUS
Posts: 322
Joined: 20 Jan 2017, 08:44
Answers: 0
Contact:

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

Post 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
python3-RevPiModIO - https://revpimodio.org/ || Der RevPi ist das Beste, was passieren konnte!
Post Reply