Library for use with VL53L1X, intended to represent the Proximity sensor expansion board with the same name.
Dependencies: VL53L1X_mbed
Dependents: HelloWorld_53L1A1 VL53L1A1_Simple_Ranging_With_One_Device VL53L1A1_Simple_Ranging_With_All_Devices VL53L1X_Ranging_With_Multiple_Devices_MbedOS ... more
Diff: Components/VL53L0X/vl53l0x_class.cpp
- Revision:
- 15:44e6c9013bff
- Parent:
- 14:8320b5ff96fa
- Child:
- 20:cb95ef8a3508
diff -r 8320b5ff96fa -r 44e6c9013bff Components/VL53L0X/vl53l0x_class.cpp
--- a/Components/VL53L0X/vl53l0x_class.cpp Mon Aug 07 14:30:21 2017 +0000
+++ b/Components/VL53L0X/vl53l0x_class.cpp Tue Aug 08 14:41:03 2017 +0000
@@ -5035,7 +5035,7 @@
{
int ret;
- ret = dev_i2c.i2c_write(p_data, DeviceAddr, RegisterAddr, NumByteToWrite);
+ ret = dev_i2c->i2c_write(p_data, DeviceAddr, RegisterAddr, NumByteToWrite);
if (ret)
return -1;
@@ -5047,7 +5047,7 @@
{
int ret;
- ret = dev_i2c.i2c_read(p_data, DeviceAddr, RegisterAddr, NumByteToRead);
+ ret = dev_i2c->i2c_read(p_data, DeviceAddr, RegisterAddr, NumByteToRead);
if (ret)
return -1;
X-NUCLEO-53L1A1 Ranging Sensor Expansion Board