- Mon Apr 14, 2014 6:53 pm
#170267
This is my first project using the SPI pins to communicate and I'm having trouble.
I'm using the SD card Shield from Sparkfun as well as the ADXL345 breakout.
The ADXL345 uses CS pin 10 and the SD card Shield uses CS pin 8 by default so they are already set on different chip select pins.
My problem is I try to combine the two sample codes to get something logging but I can't get it to work.
Separately, I can get the Accelerometer and the SD card to do what they are supposed to. But when I try combining the code, I get nothing.
Does someone have a working sample of the code so I can at least get them working together? Once I understand better what is going on, I can try tweaking it from there.
Thanks.
I'm using the SD card Shield from Sparkfun as well as the ADXL345 breakout.
The ADXL345 uses CS pin 10 and the SD card Shield uses CS pin 8 by default so they are already set on different chip select pins.
My problem is I try to combine the two sample codes to get something logging but I can't get it to work.
Separately, I can get the Accelerometer and the SD card to do what they are supposed to. But when I try combining the code, I get nothing.
Does someone have a working sample of the code so I can at least get them working together? Once I understand better what is going on, I can try tweaking it from there.
Thanks.