Hi all,
I want to read data from my ADXL345 accelerometer. I have connect this I2C device to I2C-USB convertor module and then connect them to my PC through a USB cable.
I have write the following code to read but it always return 255.
Code:byte[] result = new byte[4];
mySerialPort.Write(new byte[] { 0x56, 0x53, 0x33,0x32,2 }, 0, 5);
mySerialPort.Read(result, 0, 2);