i am trying to read an adc in python using the python bindings of libiio. These were installed using apt-get python3-libiio in a container
i am trying to run the sample scripts that are part of libiio libiio/iio_readdev.py at master · analogdevicesinc/libiio · GitHub
one thing i am not sure about is the iio device name. that needs to be passed to this. in the torizon adc example torizon-samples/adc.c at bullseye · toradex/torizon-samples · GitHub the device name is "stmp-adc’ i have also tried ‘iio:device0’ and ‘device0’ but both give context not found error.
i wanted to know if there is a sample script or using the example iio_readdev what arguments need to be passed to read the adc.