Skip to content

Commit 284fed6

Browse files
authored
Merge pull request #1 from davideq/main
Add examples on I2C and SPI
2 parents 387bf3d + 2d4b327 commit 284fed6

File tree

10 files changed

+1604
-1
lines changed

10 files changed

+1604
-1
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: X_NUCLEO_53L8A1 Continuous Integration
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths-ignore:
7+
- '*'
8+
- '**.md'
9+
- '**.txt'
10+
pull_request:
11+
paths-ignore:
12+
- '*'
13+
- '**.md'
14+
- '**.txt'
15+
jobs:
16+
astyle_check:
17+
runs-on: ubuntu-latest
18+
name: AStyle check
19+
steps:
20+
# First of all, clone the repo using the checkout action.
21+
- name: Checkout
22+
uses: actions/checkout@main
23+
24+
- name: Astyle check
25+
id: Astyle
26+
uses: stm32duino/actions/astyle-check@main
27+
28+
# Use the output from the `Astyle` step
29+
- name: Astyle Errors
30+
if: failure()
31+
run: |
32+
cat ${{ steps.Astyle.outputs.astyle-result }}
33+
exit 1
34+
codespell:
35+
name: Check for spelling errors
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@main
40+
41+
# See: https://github.com/codespell-project/actions-codespell/blob/master/README.md
42+
- name: Spell check
43+
uses: codespell-project/actions-codespell@master
44+
with:
45+
check_filenames: true
46+
check_hidden: true
47+
lib_build:
48+
runs-on: ubuntu-latest
49+
name: Library compilation
50+
steps:
51+
52+
# First of all, clone the repo using the checkout action.
53+
- name: Checkout
54+
uses: actions/checkout@main
55+
56+
- name: Compilation
57+
id: compile
58+
uses: stm32duino/actions/compile-examples@main
59+
with:
60+
board-pattern: "NUCLEO_L476RG"
61+
libraries: "STM32duino VL53L8CX"
62+
63+
# Use the output from the `Compilation` step
64+
- name: Compilation Errors
65+
if: failure()
66+
run: |
67+
cat ${{ steps.compile.outputs.compile-result }}
68+
exit 1

README.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,38 @@
11
# X-NUCLEO-53L8A1
2-
Arduino library to support the X-NUCLEO-53L8A1 based on VL53L8CX low-power high-performance 8x8 multizone Time-of-Flight sensor (ToF)
2+
3+
Arduino library to support the X-NUCLEO-53L8A1 based on VL53L8CX Time-of-Flight 8x8 multizone ranging sensor with wide field view.
4+
5+
This sensor uses I2C or SPI to communicate. I2C or SPI instance is required to access to the sensor.
6+
The APIs provide simple distance measure and multizone detection in both polling and interrupt modes.
7+
8+
## Examples
9+
10+
There are 6 examples with the X-NUCLEO-53L8A1 library using I2C and SPI.
11+
To use the X_NUCLEO_53L8A1 in SPI mode J7, J8, J9 jumpers must be on SPI.
12+
13+
* X_NUCLEO_53L8A1_HelloWorld_I2C: This example code is to show how to get multizone detection and proximity values of the VL53L8CX sensor in polling mode using I2C communication.
14+
15+
* X_NUCLEO_53L8A1_HelloWorld_SPI: This example code is to show how to get multizone detection and proximity values of the VL53L8CX sensor in polling mode using SPI communication.
16+
17+
* X_NUCLEO_53L8A1_ThresholdsDetection_I2C: This example code is to show how to configure the thresholds detection in interrupt mode using I2C communication.
18+
19+
* X_NUCLEO_53L8A1_ThresholdsDetection_SPI: This example code is to show how to configure the thresholds detection in interrupt mode using SPI communication.
20+
21+
* X_NUCLEO_53L8A1__MultiSensorRanging_I2C: This example code is to show how to make three VL53L8CX ToF sensors run simultaneously in polling mode using I2C communication.
22+
23+
* X_NUCLEO_53L8A1__MultiSensorRanging_SPI: This example code is to show how to make three VL53L8CX ToF sensors run simultaneously in polling mode using SPI communication.
24+
25+
## Dependencies
26+
27+
This package requires the following Arduino library:
28+
29+
* STM32duino VL53L8CX: https://github.com/stm32duino/VL53L8CX
30+
31+
32+
## Documentation
33+
34+
You can find the source files at
35+
https://github.com/stm32duino/X-NUCLEO-53L8A1
36+
37+
The VL53L8CX datasheet is available at
38+
https://www.st.com/en/imaging-and-photonics-solutions/vl53L8cx.html

0 commit comments

Comments
 (0)