X_Nucleo_53L1A1 Expansion Board Class for VL53L1X Sensor.

Dependencies:   VL53L1X_mbed

Dependents:   HelloWorld_53L1A1_Interrupts 53L1A1_Satellites_MbedOS 53L1A1_Interrupts_MbedOS 53L1A1_Polling_All_MbedOS ... more

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

Introduction

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

Firmware Library

Class XNucleo53L1A1 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 VL53L1X proximity sensor,
  2. up to two additional VL53L1X Satellites.

It is intentionally implemented as a singleton because only one X-NUCLEO-VL53L1A1 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 XNucleo53L1A1 *board = XNucleo53L1A1::instance(device_i2c, A2, D9, D2);

Example Applications

Revision:
24:77b414df8b6e
Parent:
22:27f00d9b777b
Child:
27:afcf740eb7b8
--- a/XNucleo53L1A1.h	Tue Apr 09 12:18:25 2019 +0000
+++ b/XNucleo53L1A1.h	Fri May 17 09:11:13 2019 +0000
@@ -47,8 +47,8 @@
 
 
 /** New device addresses */
-#define NEW_SENSOR_CENTRE_ADDRESS   0x52
-//#define NEW_SENSOR_CENTRE_ADDRESS   0x54
+//#define NEW_SENSOR_CENTRE_ADDRESS   0x52
+#define NEW_SENSOR_CENTRE_ADDRESS       0x54
 #define NEW_SENSOR_LEFT_ADDRESS         0x56
 #define NEW_SENSOR_RIGHT_ADDRESS        0x58
 
@@ -181,4 +181,4 @@
 };
 
 
-#endif /* __VL53L1_X_NUCLEO_CLASS_H */
\ No newline at end of file
+#endif /* __VL53L1_X_NUCLEO_CLASS_H */