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.
Dependencies: mbed VL53L3ExpansionBoard
Diff: main.cpp
- Revision:
- 1:cb15c3f78f5d
- Parent:
- 0:c77591fc308d
- Child:
- 2:b8a783991859
diff -r c77591fc308d -r cb15c3f78f5d main.cpp --- a/main.cpp Tue Oct 13 18:39:10 2020 +0000 +++ b/main.cpp Mon Oct 19 08:54:34 2020 +0000 @@ -14,12 +14,12 @@ #include "mbed.h" #include "XNucleo53L1A1.h" -#include "vl53L1x_I2c.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 @@ -117,7 +117,7 @@ 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);