I have been trying a lot to deal with the flow-motion sensor but I couldn't arrive to a clear result. It might be I can't understand the procedure..
I'm using cs1 on raspberry Defining the spi by this code
import spidev import time spi = spidev.SpiDev() spi.open(0,1) spi.max_speed_hz = 2000000
following this to read the product ID or delta_x I have to send the address and then read so either i use xfer2 or write and then read by the two cases I always get zero or 23 on product ID
resp = spi.xfer2([0x00])
spi.writebytes([0x00]) time.sleep(0.001) resp = spi.readbytes(10)