adafruit / adafruit/adafruit-beaglebone-io-python
SPI not working in BeagleBone Black
- Dominant language
- C
- Stars
- 479
- Forks
- 214
- PR merge metrics
- No merged PRs in 30d
Description
Hi. i am using BBB to get values in SPI mode but am not able to find a proper documentation to make it work. I have connected the pins for SPI0 with the Ic from which i want to get the values.
so my code includes
`from Adafruit_BBIO.SPI import SPI`
then i initialize the spi as` spi = SPI(1,0)`
followed by
`spi.open(1,0)`
`spi.writebytes([address])`
since it was not working i tried the tutorial on github.
but using `print(spi.xfer2([32, 11, 110, 22, 220])) `gives me values `[0,0,0,0,0] `also doesnt seem to work.
i used `config-pin `to setup SPI pins and also tried editing the` uEnv.txt to` include `spidev1.0`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.