Hello all, I am new to the world of the BBB and embedded python and have 
been attempting to set up SPI for a hobbyist application. I performed a 
simple loopback test(connecting D1 and D0 - code below) but only read a 
list of 255's back instead of the correct data. I am relatively sure that 
all of the necessary software is installed to run the SPI and can't quite 
figure out what I could be doing wrong, any help is much appreciated. Thank 
you for your time! 



from Adafruit_BBIO.SPI import SPI

spi = SPI(0,0)
spi.mode=2


spi.msh=2000000
spi.open(0,0)

print spi.xfer2([32, 11, 110, 22, 220])
spi.close()

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/9228d9ec-b216-4da1-a4d2-ca9d153063bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to