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:
- 4:4e1576541eed
- Parent:
- 0:c523920bcc09
- Child:
- 7:35ecf3e060c3
diff -r 01b8004bc0a7 -r 4e1576541eed Components/VL53L0X/vl53l0x_class.cpp
--- a/Components/VL53L0X/vl53l0x_class.cpp Mon Nov 28 14:52:49 2016 +0000
+++ b/Components/VL53L0X/vl53l0x_class.cpp Mon Dec 05 11:03:50 2016 +0000
@@ -5031,7 +5031,7 @@
}
-int VL53L0X::ReadID()
+int VL53L0X::ReadID(uint8_t *id)
{
int status = 0;
uint16_t rl_id=0;
@@ -5113,7 +5113,7 @@
status=IsPresent();
if(!status)
{
- status=Init();
+ status=Init((void *)NULL);
if(status != VL53L0X_ERROR_NONE)
{
printf("Failed to init VL53L0X sensor!\n\r");
X-NUCLEO-53L1A1 Ranging Sensor Expansion Board