This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ADXL 345 SPI communication

Hello folks, I have modified the SPI Master Loop example from the package so that I could communicate with the ADXL 345 accelerometer. I use the "spi_master_send_recv()" function to send in master's command. On my oscilloscope, I see the byte I send out from the MOSI, however I do not get any response from my accelerator's side. I checked the accelerometer's connection and they are fine. Am I using the wrote function for communication? Any ideas? Thank You in advance Milad.

Related