Hi,
Attached is a simple bare-metal example with MPL3115A2 pressure/temperature sensor, although it is blocking example, it could help.
For non-blocking algorithm please refer to AN4803 I2C Non-Blocking Communication.
Regards,
Daniel
Attachment updated
Hi,
Sorry for the late response.
The thing is that we don’t have such an example yet.
I have started working on an example with MPL3115A2 sensor,
but it is still in progress.
Regards,
Daniel
Hi,
Attached is a simple bare-metal example with MPL3115A2 pressure/temperature sensor, although it is blocking example, it could help.
For non-blocking algorithm please refer to AN4803 I2C Non-Blocking Communication.
Regards,
Daniel
Attachment updated
Hello Daniel,
I imported the example, changed the slave address, communicated with E2PROM,but can't work both write and read reg ,there is something wrong whit it?please help!
#define E2PROM_ADRR_R 0xA1
#define E2PROM_ADRR_W 0xA0
thanks
Ray