I want to create an API to get value from XGZP6859D
pressure sensor using the stm32f302r8 nucleo
board,
Here's its datasheet http://cfsensor.com/static/upload/file/20210110/XGZP6859D%20Pressure%20Sensor%20Module.pdf.
I wrote all the register in the API, and I declared a function that will help to get the pressure value from the sensor.
Would anyone help me or give some tips how can write the function? Thanks in advance.
Here's what the documentation says:
Assuming you have some basic i2c read/write functionality and the i2c address of 0X6D, a pressure read sudo-function would look something like this:
Hope that points you in the right direction! Good luck