Hello,
I'm trying to communicate with TMP-112 using DA14580. The sensor is working with Arduino, so the hardware is definitely not faulty. But no matter how I configure the DA14580, it never receives the ACK byte and results in no communication happening.
I would appreciate any help I can get. I would like to see an example of code that interfaces with any I2C slave device that's not the on board eeprom.
Thanks in advance.
Device:

Hi toddgun,
There is no difference between interfacing to the eeprom or at a sensor via the I2C interface, the code stays the same, for example in order to interface with an IMU using the eeprom drivers and read the address register of the device the following code is sufficient.
uint8_t read_byte;
i2c_eeprom_init(0x68, I2C_STANDARD, I2C_7BIT_ADDR, I2C_1BYTE_ADDR);
如果(!i2c_eeprom_read_byte(0x75,&read_byte))
printf_byte (read_byte & 0 xff);
If you dont see any ACK from your sensor make sure that the address is proper and that is passed on the bus correctly, try to reduce the speed of the module and also make sure that the configurations of the I2C module are proper in order to communicate with the sensor.
Thanks MT_dialog