I've added the following to /boot/uEnv.txt:
Code: Select all
cape_enable=bone_capemgr.enable_partno=cape-universala
Code: Select all
cape_enable=bone_capemgr.enable_partno=BB-CAN1
Then I rebooted and ran the following commands:
Code: Select all
sudo config-pin P9.17 spi_cs
sudo config-pin P9.18 spi
sudo config-pin P9.21 spi
sudo config-pin P9.22 spi_sclk
Code: Select all
from Adafruit_BBIO.SPI import SPI
spi = SPI(1,0)
spi.msh = 1000000 # Set max speed to 1Mhz
print spi.xfer2([3])
spi.close()
Code: Select all
[255]
I also hooked a logic analyzer up to it and there is no activity on any of the pins when the script runs.
Is there something obvious I am doing wrong?