cancel
Showing results for 
Search instead for 
Did you mean: 

libraries i2c.h

Icont.1
Associate II

I would need to find the i2c.h library to be able to have the low-level functions i2c.read and i2c.write to read the data of a thermal sensor mlx90640

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

You can use the HAL libraries. STM32CubeMX should generate the starting code for you. There are example usages in the relevant Cube repository, for example:

https://github.com/STMicroelectronics/STM32CubeF4/tree/2f3b26f16559f7af495727a98253067a31182cfc/Projects/STM32F412ZG-Nucleo/Examples/I2C/I2C_TwoBoards_ComPolling

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

1 REPLY 1
TDK
Guru

You can use the HAL libraries. STM32CubeMX should generate the starting code for you. There are example usages in the relevant Cube repository, for example:

https://github.com/STMicroelectronics/STM32CubeF4/tree/2f3b26f16559f7af495727a98253067a31182cfc/Projects/STM32F412ZG-Nucleo/Examples/I2C/I2C_TwoBoards_ComPolling

If you feel a post has answered your question, please click "Accept as Solution".