
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.
Diff: main.cpp
- Revision:
- 3:b8dbd5b99a02
- Parent:
- 2:4734d8c307b8
--- 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 */