Skip to content

SPI not working in BeagleBone Black #344

Open
@caxefaizan

Description

@caxefaizan

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions