| PORT | | CS0 | |
DO | | DI | | SCLK |
|---|---|---|---|---|
| SPI0 | | P9_17 | |
P9_21 | |
P9_18 | |
P9_22 |
import Adafruit_BBIO.SPI as SPI from Adafruit_BBIO.SPI import SPI # spi = SPI(bus, device) #/dev/spidev<bus>.<device> # /dev/spidev0.0 spi = SPI(0, 0) print(spi.xfer2([32, 11, 110, 22, 220])) spi.close()
The output should be: 32, 11, 110, 22, 220; but, it is: 255, 255, 255, 255, 255.
Can anybody help me, please?
Thanks for the attention