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
Revision 4:3c5cc844a7e5, committed 2019-06-06
- Comitter:
- johnAlexander
- Date:
- Thu Jun 06 09:11:02 2019 +0000
- Parent:
- 3:ff6e42401073
- Commit message:
- Use published. mbed-certified board and sensor libraries.
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 |
--- a/X_NUCLEO_53L0A1.lib Tue Aug 08 07:59:12 2017 +0000 +++ b/X_NUCLEO_53L0A1.lib Thu Jun 06 09:11:02 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
--- 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 */
