Sample ranging example. Suporting up to 3 sensors. Sending result from X-NUCLEO-53L0A1 both on com port and on digit display. User button IRQ used for switching displayed sensor

Dependencies:   mbed X_NUCLEO_53L0A1

Fork of Display_53L0A1_WithSatelites by ST Expansion SW Team

Revision:
4:3c5cc844a7e5
Parent:
3:ff6e42401073
--- a/main.cpp	Tue Aug 08 07:59:12 2017 +0000
+++ b/main.cpp	Thu Jun 06 09:11:02 2019 +0000
@@ -1,5 +1,5 @@
 #include "mbed.h"
-#include "x_nucleo_53l0a1.h"
+#include "XNucleo53L0A1.h"
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
@@ -18,7 +18,7 @@
 #define VL53L0_I2C_SDA   D14
 #define VL53L0_I2C_SCL   D15
 
-static X_NUCLEO_53L0A1 *board = NULL;
+static XNucleo53L0A1 *board = NULL;
 VL53L0X_RangingMeasurementData_t data_sensor;
 OperatingMode operating_mode;
 
@@ -99,7 +99,7 @@
     int status;
 
     /* creates the 53L0A1 expansion board singleton obj */
-    board = X_NUCLEO_53L0A1::instance(device_i2c, A2, D8, D2);
+    board = XNucleo53L0A1::instance(device_i2c, A2, D8, D2);
 
     board->display->display_string("53L0");
     /* init the 53L0A1 expansion board with default values */