I would like to retrieve information from a sensor with my RevPi connect and DIO module. I try to use the library RevPiModio2 but it doesn't work..
My DIO module is correctly configured, I check with the piTest -d
I tried first to swich on the LED on the Connect device to check the good functioning of my device. I haven't error message but the LED doesn't light up..
How to make the connection with the revpi connect and the DIO module in the code?
Code: Select all
import revpimodio2 import time rpi = revpimodio2.RevPiModIO(autorefresh=True) rpi.core.a2green.value = True
Then, I would like use this library to check the status of 2 inputs every 10sec. I need to use with library between the mainloop, cycle loop, reg event?