Hello all, I am new to the world of the BBB and have been trying to get the 
SPI on the BBB to run a basic loopback test (connecting D1 and D0) but only 
retrieve 255's instead of the data I am sending out. I was relatively sure 
that everything needed to run SPI was correctly installed on the BBB and 
that the program I have in place (which I found online) should work to do 
what I think. Below is a copy of the  code. 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/6e7bb8a1-f9d9-462f-8435-326e4a4d0e0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to