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 X_NUCLEO_53L1A1_mbed
Diff: main.cpp
- Revision:
- 22:e811600253b0
- Parent:
- 21:37399a49b40e
--- a/main.cpp Thu Jul 18 14:12:25 2019 +0000
+++ b/main.cpp Wed Jul 24 10:49:25 2019 +0000
@@ -32,7 +32,7 @@
#include "mbed.h"
#include "XNucleo53L1A1.h"
-#include "vl53L1x_I2c.h"
+#include "VL53L1X_I2C.h"
#define VL53L1_I2C_SDA D14
#define VL53L1_I2C_SCL D15
@@ -78,7 +78,7 @@
/*
* Main ranging function
*/
-int range_measure(vl53L1X_DevI2C *device_i2c)
+int range_measure(VL53L1X_DevI2C *device_i2c)
{
int status = 0;
uint16_t distance = 0;
@@ -131,6 +131,6 @@
InterruptIn stop_button(SW2);
stop_button.rise(&measuring_stop_irq);
#endif
- vl53L1X_DevI2C *device_i2c = new vl53L1X_DevI2C(VL53L1_I2C_SDA, VL53L1_I2C_SCL);
+ VL53L1X_DevI2C *device_i2c = new VL53L1X_DevI2C(VL53L1_I2C_SDA, VL53L1_I2C_SCL);
range_measure(device_i2c); // start continuous measures
}