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
Diff: main.cpp
- Revision:
- 4:79d9b33ebed6
- Parent:
- 3:bd38edab685e
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");
