I am trying to communicate with the VCNL36887S via i2c using the STM32F407VGT6 I am able to read the output register 0xf2. 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 VCNL36887SImages of function used to read from the output registerand an image of how I am attempting to write.I will also include my code from Keil and CubeMXAny advice would be appreciated Best R...