Hi,
I installed a home automation V3 hat to a raspberry.
I am able to control the relays using python.
But I am not able to use the opto input channels.
I wired a sensor to the opto input 1 (I tried with 1, 2, 5 and 6...).
If I take a multimeter, I am reading 23.5V on the pin 1 of the hat but when I run the following code, python prints 0.
import libioplus as iop
print(iop.getOptoCh(0, 1))
Am i missing something ? (highly possible, I am beginner )
Thank you
I installed a home automation V3 hat to a raspberry.
I am able to control the relays using python.
But I am not able to use the opto input channels.
I wired a sensor to the opto input 1 (I tried with 1, 2, 5 and 6...).
If I take a multimeter, I am reading 23.5V on the pin 1 of the hat but when I run the following code, python prints 0.
import libioplus as iop
print(iop.getOptoCh(0, 1))
Am i missing something ? (highly possible, I am beginner )
Thank you