Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 2:86876e590f28
- Parent:
- 0:c77591fc308d
- Child:
- 3:42c96c9c627b
--- a/main.cpp Wed Oct 14 15:04:04 2020 +0000 +++ b/main.cpp Mon Oct 19 09:01:48 2020 +0000 @@ -13,17 +13,17 @@ #include <stdio.h> #include "mbed.h" -#include "XNucleo53L1A1.h" -#include "vl53L1x_I2c.h" +#include "XNucleo53LX.h" +#include "vl53L3_I2c.h" #include <time.h> -#define VL53L1_I2C_SDA D14 -#define VL53L1_I2C_SCL D15 +#define I2C_SDA D14 +#define I2C_SCL D15 #define MEASUREMENTTIMING 55 -static XNucleo53L1A1 *board=NULL; +static XNucleo53LX *board=NULL; Serial pc(SERIAL_TX, SERIAL_RX); static int int_centre_result = 0; @@ -117,12 +117,12 @@ printf("Hello world!\r\n"); - vl53L1X_DevI2C *dev_I2C = new vl53L1X_DevI2C(VL53L1_I2C_SDA, VL53L1_I2C_SCL); + vl53L3_DevI2C *dev_I2C = new vl53L3_DevI2C(I2C_SDA, I2C_SCL); // printf("I2C device created! %d %d\r\n",dev_I2C,*dev_I2C); /* creates the 53L1A1 expansion board singleton obj */ - board = XNucleo53L1A1::instance(dev_I2C, A2, D8, D2); + board = XNucleo53LX::instance(dev_I2C, A2, D8, D2); printf("board created!\r\n"); /* init the 53L1A1 expansion board with default values */