cancel
Showing results for 
Search instead for 
Did you mean: 

I am able to Read however cant write via I2C using STM32F407VGT6 and Proximity Sensor: VCNL36887S

LMyle.1
Associate III

I am able to read the output register 0xf2.

And knows this works correctly as I can observe the HEX values change when I hover and remove my finger away from the proximity sensor.

However am unsure if I am writing to the registers correctly as they are not impacting the output results as expected.

Please see files attached:

Data/application Guide of VCNL36887S

Images of function used to read from the output register

and an image of how I am attempting to write.

I will also include my code from Keil and CubeMX

Any advice would be appreciated

Best Regards,

Luke

0 REPLIES 0