I am having trouble reading analog input by using the following command (using piControl):
Code: Select all
pi@raspberrypi:~ $ piTest -r AIn_1
Anybody has run into same issue?
But, once I performed the following manual raw iio read (see below code), then the analog input reading using above will start working correctly.
Code: Select all
pi@raspberrypi:~ $ sudo cat /sys/bus/iio/devices/iio:device1/in_voltage0_raw
Note: I am using RevPi Compact - and i have configure this device using PICtory.
Thanks.
-Christian