In my previous project I have used spidev in order to work with ADC, and in python script I could have:
spi = spidev.SpiDev() spi.open(0,0) ... adc = spi.xfer2([1,(8+channel)<<4,0])
Now I'm trying to work with pigpio library (to avoid the permission demands) but I'm not really sure how to use pigpio's
spi_xfer functions. Looks like they take more input arguments than
spi.xfer2. Can someone explain to me what these arguments are - in some analogy with my previous approach with spidev? Thanks a lot.