![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fork of Charles's app & lib.
Diff: Main.cpp
- Revision:
- 4:9fad37a914cd
- Parent:
- 3:7826b7dbd1b0
--- a/Main.cpp Tue Nov 03 15:30:12 2020 +0000 +++ b/Main.cpp Wed Nov 04 10:03:01 2020 +0000 @@ -1,5 +1,5 @@ /* - * This VL53L1X Expansion board test application performs range measurements + * This VL53L3 Expansion board test application performs range measurements * using the onboard embedded centre sensor, in singleshot, polling mode. * Measured ranges are ouput on the Serial Port, running at 9600 baud. * @@ -15,7 +15,7 @@ #include <time.h> #include "mbed.h" -#include "XNucleo53LX.h" +#include "XNucleo53L3A2.h" #include "vl53L3_I2c.h" @@ -23,7 +23,7 @@ #define I2C_SDA D14 #define I2C_SCL D15 -static XNucleo53LX *board=NULL; +static XNucleo53L3A2 *board=NULL; Serial pc(SERIAL_TX, SERIAL_RX); @@ -53,7 +53,7 @@ vl53L3_DevI2C *dev_I2C = new vl53L3_DevI2C(I2C_SDA, I2C_SCL); /* creates the 53L1A1 expansion board singleton obj */ - board = XNucleo53LX::instance(dev_I2C, A2, D8, D2); + board = XNucleo53L3A2::instance(dev_I2C, A2, D8, D2); printf("board created!\r\n");