You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A vl53l5cx library for esp32 using the **esp-idf framework**. This library is based
7
4
on [ST's Ultra Lite Driver (ULD) for VL53L5CX](https://www.st.com/content/st_com/en/products/embedded-software/imaging-software/stsw-img023.html)
@@ -10,108 +7,64 @@ on [ST's Ultra Lite Driver (ULD) for VL53L5CX](https://www.st.com/content/st_co
10
7
> **Warning**
11
8
> This Library is **not** compatible with Arduino framework
12
9
13
-
## 📌 Contents
10
+
## Contents 📌
14
11
15
-
*[Installation](#installation)
16
-
*[Examples](#examples)
17
-
*[Structure](#component-structure)
12
+
*[Getting started](#Getting-started)
13
+
*[Wiring for the VL53L5CX-SATEL](#wiring-for-the-vl53l5cx-satel-)
14
+
*[Library Installation](#library-installation-)
15
+
*[Examples](#examples-)
16
+
*[Usual Errors](#usual-errors-)
17
+
*[Stack overflow error](#stack-overflow-error-)
18
18
19
19
---
20
20
21
-
## Installation
21
+
## Getting started
22
+
### Wiring for the VL53L5CX-SATEL 🔌
22
23
23
-
### IDF Component Manager
24
+
For the examples this is the used wiring, but feel free to modify it and adapt it for your needs.
24
25
25
-
You can now use the [IDF Component Manager](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-component-manager.html) to easily import this library into your project ! If you have not already done so, create a file named `idf_component.yml` in your `📁 ./main` folder. Now just add the library to it :
You can now reload your cmake project, and you should see it in the cmake log :
36
-
37
-
```log
38
-
Processing 2 dependencies:
39
-
[1/2] idf (5.0.0)
40
-
[2/2] vl53l5cx
41
-
```
42
-
43
-
and in the `📁 ./managed_components` folder.
44
37
38
+
### Library Installation 📥
45
39
46
-
### Manually
40
+
The library is available at https://components.espressif.com/components/rjrp44/vl53l5cx.
47
41
48
-
* Download this project.
49
-
* Create a `📁 /vl53lcx` folder into the `📁 ./components` folder.
50
-
* Add it the content of this project
51
-
* Reload Cmake
42
+
So, you can use the [IDF Component Manager](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-component-manager.html) to easily import this library into your project.
43
+
To add this component to your project, run:
52
44
53
-
54
-
55
-
You can now import the library, and use the full power of the sensor 🎉.
56
-
```c
57
-
#include"vl53l5cx_api.h"
45
+
```log
46
+
idf.py add-dependency "rjrp44/vl53l5cx^2.0.1"
58
47
```
59
48
60
-
---
61
-
62
-
### Examples
63
49
64
-
ST provide some examples in `/examples`.
50
+
## Examples 📄
65
51
66
-
This example function is used to initialize the [I2C bus](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/i2c.html) for thesensor :
52
+
You can find in `📁 ./examples` ST's examples adapted for ESP32 with I²C. For more information about the available features read [UM2884](https://www.st.com/resource/en/user_manual/um2884-a-guide-to-using-the-vl53l5cx-multizone-timeofflight-ranging-sensor-with-wide-field-of-view-ultra-lite-driver-uld-stmicroelectronics.pdf).
0 commit comments