#define DEVICE (0x53) //ADXL345 device address
#define TO_READ (6) //num of bytes we are going to read each time (two bytes for each axis)
Why do the values contain parentheses?
I've 'updated' it to use Serial.write(byte(10)) instead of what appears to be the old syntax
As opposed to the recommended
Serial.write((byte)10);
Why? Are you that scared of casts?
but I still seem to be getting an error, which I believe is due to Wire.write and Wire.requestFrom
Share them. we'll help you straighten out the issues. Keep them to yourself. you are on your own.