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

Ok sorry new to posting too. This is better for sure