Raspberry Pi - SPI Communication
What will be the output of this Python code snippet reading channel 1 from MCP3008?
import spidev
spi = spidev.SpiDev()
spi.open(0,0)
resp = spi.xfer2([1, (8+1)<<4, 0])
data = ((resp[1]&3) << 8) + resp[2]
print(data)
