Sample application, using the X_Nucleo_53L0A1 library, to display range results from the X-NUCLEO-53L0A1 central sensor on the 4-digit LED display.
Dependencies: mbed X_NUCLEO_53L0A1
Fork of Display_53L0A1 by
Sample application displaying range results on the 4-digit LED display. Uses the Centre sensor and ranges in singleshot_polling mode.
Revision 3:b8dbd5b99a02, committed 2019-06-06
- Comitter:
- johnAlexander
- Date:
- Thu Jun 06 08:44:36 2019 +0000
- Parent:
- 2:4734d8c307b8
- Commit message:
- Update with mbed certified sensor and board 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 |
--- a/X_NUCLEO_53L0A1.lib Mon Aug 07 14:33:34 2017 +0000 +++ b/X_NUCLEO_53L0A1.lib Thu Jun 06 08:44:36 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 Mon Aug 07 14:33:34 2017 +0000 +++ b/main.cpp Thu Jun 06 08:44:36 2019 +0000 @@ -13,13 +13,13 @@ #include <stdio.h> #include "mbed.h" -#include "x_nucleo_53l0a1.h" -#include "vl53l0x_class.h" +#include "XNucleo53L0A1.h" +#include "VL53L0X.h" #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_centre; OperatingMode operating_mode; @@ -60,7 +60,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 */