Sample application to show ranging with interrupts support. Uses centre sensor on X-Nucleo-53L0A1 and ranging_continuous_interrupt mode.

Dependencies:   mbed X_NUCLEO_53L0A1

Fork of Display_53L0A1 by ST

Files at this revision

API Documentation at this revision

Comitter:
johnAlexander
Date:
Thu Jun 06 09:04:45 2019 +0000
Parent:
3:bd38edab685e
Commit message:
Use published, mbed certified board and sensor classes.

Changed in this revision

X_NUCLEO_53L0A1.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r bd38edab685e -r 79d9b33ebed6 X_NUCLEO_53L0A1.lib
--- a/X_NUCLEO_53L0A1.lib	Mon Aug 07 15:18:57 2017 +0000
+++ b/X_NUCLEO_53L0A1.lib	Thu Jun 06 09:04:45 2019 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/ST/code/X_NUCLEO_53L0A1/#8320b5ff96fa
+https://developer.mbed.org/teams/ST/code/X_NUCLEO_53L0A1/#99c367e8a402
diff -r bd38edab685e -r 79d9b33ebed6 main.cpp
--- a/main.cpp	Mon Aug 07 15:18:57 2017 +0000
+++ b/main.cpp	Thu Jun 06 09:04:45 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;
 
@@ -58,7 +58,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");