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
Search found 2 matches
- 23 Dec 2019, 22:00
- Forum: RevPiModIO
- Topic: RevPi DIO - Turn ON and OFF the Output O_1
- Replies: 2
- Views: 9654
- 23 Dec 2019, 17:42
- Forum: My Project
- Topic: RevPi DIO - Manage Input Pin in Python Script
- Replies: 1
- Views: 7935
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 ...
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 ...