did you see this previous discussion? https://forum.bela.io/d/1086-issues-connecting-adxl345-for-airharp/2
My recommendations are still the same. For instance, start from this library: https://github.com/cagayakemiracl/adxl345-i2c-linux/
The first step is to create a new C++ Bela project and delete the default render.cpp file. Then copy the .c and .h files from the link above onto the project and run it. It should build and then fail at run time because it is attempting to use the I2C0 bus which is not exposed. on the pin headers. Make sure you connect the sensor to the I2C1 pins and then edit the main.cpp file so that the line
adxl345_default_init();
becomes
adxl345_init(I2C_DEVICE_1, ADXL345_ADDR_LOW, ADXL345_DATARATE_12_5_HZ);
. You'll also want to add #include <unistd.h> at the top of the main.cpp file and add a line usleep(100000) inside the while(1) loop to throttle the printing.
If running this program prints meaningful values from the sensor, we can move on to the next step.