a first-time poster here looking for some help
I've been trying to interface my Raspberry Pi to a single-axis gyroscope with an I2C protocol. I am doing this using C++ with the i2c-dev.h-library.
I seem to be able to connect to it, but the received data does not make any sense. This is what I think is going on: the I2C interface on the ADC is very simple, it only requires to be addressed and a high read bit, then it will return 3-4 bytes of data depending on configuration. The problem here is that it does not take any command byte. The I2C functions in Linux on the other hand requires this command byte to be specified when using functions such as i2c_smbus_read_block_data() (see e.g. this overview).
If anybody could help me out here I would really appreciate it.