bitbank2 / VL53L0X

A simple C library to read the distance values from the VL53L0X time of flight sensor
Other
54 stars 23 forks source link

New library version #4

Closed gidesa closed 3 years ago

gidesa commented 3 years ago

Hello, I have done some modifications to the library. Now it can be compiled as shared library (.so). More, I have added two functions: tofStartReadDist start a new reading and soon return to caller; tofReadDistanceAsync read the distance without any initial waiting cycle. That is, the reading is non blocking. Using these functions a caller program can do other processing in the reading interval required by the device. The caller first call tofStartReadDist, then is responsible to call tofReadDistanceAsync after the minimum required interval to complete the reading operation, 200 ms or more. Attached there is also a simple test program. Hoping this will be useful

Giandomenico De Sanctis

VL53L0X-nowait-sharedlib.zip

bitbank2 commented 3 years ago

Thank you for creating this. I'm not currently working with this sensor on Linux, so I can't test what you've done. I would suggest you create a fork on your github account and host it there.