ADXL 345 & Adafruit SD data logger_ how to merge the two working codes together?

Certainly is.