I have a BBB trying to connect to a MCP4922 (http://ww1.microchip.com/downloads/en/D ... 22250A.pdf) over SPI.
I have been trying for several days now and can not get it to output a voltage.
I don't know how to configure the SPI library (in terms of rising/falling edge and high/low clock)
Furthermore, every guide I see is using the command SPI(1,0) or SPI(2,0), whereas I can only use SPI(0,0), otherwise I get
Code: Select all
>>> spi = SPI[1,0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'type' object has no attribute '__getitem__'
I also included a picture of the wiring I did.
Any and all help appreciated greatly.