Raspberry Pi SPI read and write simultaneously -


i have raspberry pi 3 jessie on it. have 8bit shift register working spi. want send data , read data simultaneously through spi. sends data it:

spi.xfer2([0x01,0x02,0x03) 

this reads data

spi.readbytes(3) 

but don't work @ same time , latest, returns last item in list, followed zeroes.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -