i am having a hardtime reading the value from MPU6050
the address is 0x68 but can you explain why its changing to 0xD1 in requestFrom(uint8_t address, uint8_t numBytes)
in i2c addresses are 7 bits long + 1 bit to indicate read/write. So the address that you write/read from is (address << 1) + (0 if write, 1 if read). 0x68 << 1 + 1 = 0xD1.
i am having a hardtime reading the value from MPU6050 the address is 0x68 but can you explain why its changing to 0xD1 in requestFrom(uint8_t address, uint8_t numBytes)
if (writeByte(((current_rw_address << 1) | 1) & 0xFF)) { stop(); return 0; }
i am new to this library so dont mind if i made mistake