Skip to main content
Icont.1
Associate III
November 10, 2021
Solved

libraries i2c.h

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

This topic has been closed for replies.
TDK
TDKBest answer
November 10, 2021

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""."

1 reply

TDK
TDKBest answer
November 10, 2021

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""."