Search found 2 matches

by sixwac
23 Dec 2019, 22:00
Forum: RevPiModIO
Topic: RevPi DIO - Turn ON and OFF the Output O_1
Replies: 2
Views: 6571

RevPi DIO - Turn ON and OFF the Output O_1

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
by sixwac
23 Dec 2019, 17:42
Forum: My Project
Topic: RevPi DIO - Manage Input Pin in Python Script
Replies: 1
Views: 6014

RevPi DIO - Manage Input Pin in Python Script

Hi, i'm a new user on the RevPI Forum. I buy the RevPi Core and RevPi DIO. I should turn on a Led when a button is pressed. In python on Raspberry Pi 3b+ my code was the #SETUP PIN GPIO.setup(7, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) GPIO.setup(8, GPIO.OUT, GPIO.LOW) #INIT VARIABLE bool ON_OFF=False #...