Integrating TOF and SPD with VL53L8CX - second try
(I deleted the content by accident)
I'm working on a project that uses Smart Presence Detection to control a LED strip using the X-NUCLEO-53L8A1 board. I started a blank project in STM32CubeIDE and included the X-CUBE-TOF1 bundle. I have added several other features to control the LEDs (SPI, DMA, timers, etc). I am able to get ranging data from the ToF sensor.
I would like to add the Smart Presence Detection from STSW-IMG048 but I'm having a great deal of difficulty integrating the SPD code with the existing code that talks to the VL53L8. It seems that the SPD code makes extensive use of function calls to control the sensor using the VL53LMZ_ULD_API but these calls do not work in the context of my existing project - perhaps it some incompatibility in the GPIO or I2C setup but I cannot be sure. I would prefer to be able to use calls to the sensor-control functions in the X-CUBE-TOF1 package to satisfy the requirements of the SPD but it does not look possible - the TOF1 functions do not seem to have the access to low-level sensor parameters that the SPD needs to change.
Alternatively, I could try to add my LED code onto the code in IMG048 but that will be very difficult as the IMG048 lacks an .ioc file.
Has anyone had success in integrating the SPD library into an existing project? How did you do it?
Thank you for your time.
Brian
