I've been fussing with getting the ADXL345 (https://www.sparkfun.com/products/9836) and the SAMD21 Mini (https://www.sparkfun.com/products/13664) trying to get them to talk. I'm using the example code from the ADXL345 Hookup Guide as well as hooking up the ADXL345 to the SAMD21 as directed for SPI connections. I've gone in and commented out most of the code to try and find what lines are causing the trouble and it seems as though the following line near the top is:
ADXL345 adxl = ADXL345(10); // USE FOR SPI COMMUNICATION, ADXL345(CS_PIN);
I'm not super experienced in troubleshooting hardware code beyond trying to print out lines as you go through the code, but I can't even get to far in the code and I don't see any errors in the arduino IDE.
Can anyone help?
For the discussion of Arduino related topics.
2 posts • Page 1 of 1