Closed soypat closed 3 years ago
If someone can get around to testing the Arduino Mega that'd be great. I couldn't get the SPI to work for the life of me.
I have gotten around to testing the Arduino Mega's SPI with the MCP3008 library.
The following setup worked for me:
Din
(MOSI)Dout
(MISO)CS
(Chip select)CLK
(Serial clock)
machine.D51
is equal to machine.PB2
(equal to 10
), which appears as sdo
in SPI0
configuration, which confused me (I thought SDO was Slave Device Output). I'd like to point out these names are easy to mistake, as manufacturers commonly use SDO/SDI for their pins.We try to follow the guidelines of the Open Source Hardware Association regarding naming of pins in the SPI interface.
Please see: https://www.oshwa.org/a-resolution-to-redefine-spi-signal-names/
Thank you!
The lines in question.
sdi
andsdo
seem to be flipped.It would seem that the correct way of arranging
SPI0
according to arduino's documentation would be the followingI've tested both ways, the second one seems to actually work.