cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to know how to use VL53l0X with stm8s003F3 using the API library.

ARICC.18
Associate

Hello @John E KVAM​ ,

I would like to know how to use VL53l0X with stm8s003F3 using the API library.

Kind regards.

Augusto.

2 REPLIES 2
John E KVAM
ST Employee

STSW-IMG005 is the API itself.

it's called the VL53L0X API (Application Programming Interface and documentation)

the second thing you need is any working project with the STM8. (I really cannot help with that.)

The tricky bit is finding some working STM8 I2C code.

the API above does everything you need - but it boils down to 6 or 7 functions in the Platform.c file

but as delivered those functions are empty.

Your job is to fill out the functions in the platform.c file that work for your MCU.

the API has examples in it on how to call the functions, and once you get the I2C interface working just follow the examples.

Note - don't try to write the I2C functions - just google for them. Someone has done the work.

  • john

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question. It helps the next guy.
Eleon BORLINI
ST Employee

Hi Augusto @ARICC.18​ ,

did you eventually find the way to interface STM8 + VL53L0X thanks to John's suggestions?

-Eleon