-
Notifications
You must be signed in to change notification settings - Fork 178
Description
Hi,
I have HMC5883L magnetometer which needs to be connected to a PC through USB interface. I am connecting the HMC5883L to PC using an USB to I2c bridge FT2232H Numato breakout board.
For communicating to HMC5883L through the FTDI chip, I am using the MPSSE library. I have created a sample application to do this taking a reference using i2ceeprom.c file present in the examples folder.
But unfortunately the data I get from the device is always -1 even though the value I have written to that register it different. When I am writing the data to a particular register, I get an acknowledgment. Am I doing something wrong while writing the command?
Attaching the code for reference.
i2ctest.txt
Any comments will be helpful. I am blocked with this issue.
Regards,
Jyotsana.