Library for use with VL53L0X, cut 1.1, based on mass-market API v1.1.

Dependencies:   ST_INTERFACES X_NUCLEO_COMMON

Dependents:   ConcorsoFinal HelloWorld_IHM01A1 m3pi_BT m3pi_LIDAR ... more

Fork of X_NUCLEO_53L0A1 by ST Expansion SW Team

X-NUCLEO-53L0A1 Proximity Sensor Expansion Board Firmware Package

Introduction

This firmware package includes Component Device Drivers and the Board Support Package for STMicroelectronics' X-NUCLEO-53L0A1 Proximity sensor expansion board based on VL53L0X.

Firmware Library

Class X_NUCLEO_53L0A1 is intended to represent the Proximity sensor expansion board with the same name.

The expansion board provides support for the following components:

  1. on-board VL53L0X proximity sensor,
  2. up to two additional VL53L0X Satellites,
  3. on-board 4-digit display

It is intentionally implemented as a singleton because only one X-NUCLEO-VL53L0A1 may be deployed at a time in a HW component stack. In order to get the singleton instance you have to call class method `Instance()`, e.g.:

// Sensors expansion board singleton instance
static X_NUCLEO_53L0A1 *board = X_NUCLEO_53L0A1::Instance(device_i2c, A2, D8, D2);

Example Applications

The library and sample application code were tested against mbed revision 143, dated 26th May 2017.

Revisions of Components/VL53L0X/vl53l0x_class.cpp

Revision Date Message Actions
20:cb95ef8a3508 2017-12-15 Added vl53l0x_get_device() to extend API usability File  Diff  Annotate
15:44e6c9013bff 2017-08-08 Update references in all board components to allow continued use of DevI2C from X_Nucleo_Common. File  Diff  Annotate
14:8320b5ff96fa 2017-08-07 Aligned to ARM mbed coding style. File  Diff  Annotate
13:615f7e38568c 2017-06-15 Refactor interrupt setup in StartMeasurement, for range_continuous_interrupt mode. File  Diff  Annotate
12:f6e2bad00dc7 2017-06-14 Add ranging_continuous_interrupt support. File  Diff  Annotate
11:ceaa5a026412 2017-06-12 Change to vl53lO class: aligning ARM mbed codding standard. Deprecated functions kept for backward compatibility. File  Diff  Annotate
9:367d1f390cb2 2017-06-07 Enable support for left and right sensors. Tested with mbed_143. File  Diff  Annotate
7:35ecf3e060c3 2016-12-05 Replace STM32 HAL_delay call with equivalent mbed wait_ms, for cross processor compatibility.; Import mbed.h in VL53L0X class to ease finding InterruptIn.; Minor code tidy up. File  Diff  Annotate
4:4e1576541eed 2016-12-05 Minor code tidy-up. File  Diff  Annotate
2:58b5e9097aa3 2016-12-01 Use ST_INTERFACES package to access RangeSensor abstract class. File  Diff  Annotate
0:c523920bcc09 2016-11-28 Singleshot, polled ranging example using central VL53L0X sensor.; Compatible with mass-market v1.1 C API. File  Diff  Annotate