2020-09-02 02:05 AM
I would like to integrate Gravity VL53L0X to the STM 32 LoRa Discovery Kit, B-L072Z-LRWAN1. Is it possible that I can port part of the code from X-CUBE-53L0A1 into I-CUBE-LRWAN?
Or what code or setting I need to include in I-CUBE-LRWAN?
Basically, I want the LoRa module on the Discovery Kit to read VL53L0X sensor and the data.
Any other hardware connection I should take note?
2020-09-03 07:14 AM
If you download the VL53l0X driver you should be able to import the code.
STSW-IMG005 VL53L0X API (Application Programming Interface and documentation)
Then it's a matter of piping. The API resolves to a bunch of I2C read/write functions that are in the platform.c file.
It's up to you to get these to work. But if the driver can talk to the device, you should have any problem using one of the example files to write your code.
Good luck.