2024-12-16 04:48 AM
I have added all the drivers for the VL53L0X API, but I still encounter this error. Why is that?
2024-12-16 05:12 AM
Help me please!!!!!
2024-12-16 07:34 AM
When interfacing the sensor with your MCU, it is up to you to write the 'platform' layer. This layer actually executes the I2C_read and I2C_write commands.
As delivered, the platform layer is configured to interface to a PC using its internal bus. (It's how ST developed the code.)
No one wants that.
So, edit the platform.c file - remove all the guts of those functions (references to Windows) . You should be left with a half dozen functions that look like
Re-write those functions for your MCU.
Perhaps you don't have to the work. Look in GetHub.com for someone who has already written I2C functions for your MCU.
- john