I found two source codes on the internet. One for adxl345 and the other for the microSD breakout. I have tried to upload each of the code to atmega328 and they are workable and functional, ie adxl345 could get acceleration data of 3 axises after uploading the specific code and sd breakout board could work after uploading another specific code.
Because of the purpose of my study project, I want to combine two codes together to store the acceleration data recorded by adel345 into the sd card. However it was unsuccessful.
The attached files are as follow:
code for getting data from adxl345
code for reading data from sd card and writing data to sd card
combined code (but not successful)
Would anybody help me to have a look on the combined code?
Well, yes, I did see the smiley. Can't see the face on the smiley. These new ones are stupid. Bring back the old smileys. I could see the faces on them.