I tried to compile the sample code and got the following errors
Tried it with all 3 examples, all had similar issues.
11x 'error: stray '@' in program'
3x 'error: stray '\205' in program'
3x 'error: stray '\251' in program'
3x 'error: 'Skip' does not name a type'
2x 'error: 'TwoWire' does not name a type'
error: 'TwoWire' was not declared in this scope
8x error: 'TwoWire' has not been declared
error: 'i2c' was not declared in this scope
2x error: expected unqualified-id before numeric constant
error: 'Skip' does not name a type
error: 'Wire' was not declared in this scope
2x error: 'lox1' was not declared in this scope
error: call to 'boolean Adafruit_VL53L0X::begin(uint8_t, boolean, int*)' uses the default argument for parameter 3, which is not yet defined
In file included from [...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino:1:0:
[...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:39:1: error: stray '@' in program
@chetan-prime chetan-prime Add support for specifying an alternate I2C bus other than the hardco… 1563a9e on Sep 29, 2018
^
[...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:39:1: error: stray '\205' in program
[...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:40:1: error: stray '@' in program
@ladyada
^
[...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:41:1: error: stray '@' in program
@deanm1278
^
[...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:42:1: error: stray '@' in program
@ServerTech
^
[...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:43:1: error: stray '@' in program
@chetan-prime
^
In file included from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_api_strings.h:33:0,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_api.h:32,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:69,
from [...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino:1:
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:39:1: error: stray '@' in program
@chetan-prime chetan-prime Add support for specifying an alternate I2C bus other than the hardco… 1563a9e on Sep 29, 2018
^
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:39:1: error: stray '\205' in program
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:40:1: error: stray '@' in program
@ladyada
^
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:41:1: error: stray '@' in program
@chetan-prime
^
In file included from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_api_strings.h:33:0,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_api.h:32,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:69,
from [...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino:1:
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:284:5: error: stray '\251' in program
In file included from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_api.h:34:0,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:69,
from [...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino:1:
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:39:1: error: stray '@' in program
@chetan-prime chetan-prime Add support for specifying an alternate I2C bus other than the hardco… 1563a9e on Sep 29, 2018
^
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:39:1: error: stray '\205' in program
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:40:1: error: stray '@' in program
@ladyada
^
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:41:1: error: stray '@' in program
@chetan-prime
^
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:284:5: error: stray '\251' in program
In file included from [...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino:1:0:
[...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:112:5: error: stray '\251' in program
In file included from [...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino:1:0:
[...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:2:1: error: 'Skip' does not name a type
Skip to content
^
In file included from [...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:68:0,
from [...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino:1:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:82:8: error: 'TwoWire' does not name a type
extern TwoWire Wire;
In file included from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_api_strings.h:33:0,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_api.h:32,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:69,
from [...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino:1:
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:2:1: error: 'Skip' does not name a type
Skip to content
^
In file included from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:75:0,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_api_strings.h:33,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_api.h:32,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:69,
from [...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino:1:
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_i2c_platform.h:5:22: error: 'TwoWire' was not declared in this scope
int VL53L0X_i2c_init(TwoWire *i2c);
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_i2c_platform.h:5:31: error: 'i2c' was not declared in this scope
int VL53L0X_i2c_init(TwoWire *i2c);
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_i2c_platform.h:6:95: error: 'TwoWire' has not been declared
int VL53L0X_write_multi(uint8_t deviceAddress, uint8_t index, uint8_t *pdata, uint32_t count, TwoWire *i2c);
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_i2c_platform.h:7:94: error: 'TwoWire' has not been declared
int VL53L0X_read_multi(uint8_t deviceAddress, uint8_t index, uint8_t *pdata, uint32_t count, TwoWire *i2c);
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_i2c_platform.h:8:76: error: 'TwoWire' has not been declared
int VL53L0X_write_byte(uint8_t deviceAddress, uint8_t index, uint8_t data, TwoWire *i2c);
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_i2c_platform.h:9:77: error: 'TwoWire' has not been declared
int VL53L0X_write_word(uint8_t deviceAddress, uint8_t index, uint16_t data, TwoWire *i2c);
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_i2c_platform.h:10:78: error: 'TwoWire' has not been declared
int VL53L0X_write_dword(uint8_t deviceAddress, uint8_t index, uint32_t data, TwoWire *i2c);
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_i2c_platform.h:11:76: error: 'TwoWire' has not been declared
int VL53L0X_read_byte(uint8_t deviceAddress, uint8_t index, uint8_t *data, TwoWire *i2c);
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_i2c_platform.h:12:77: error: 'TwoWire' has not been declared
int VL53L0X_read_word(uint8_t deviceAddress, uint8_t index, uint16_t *data, TwoWire *i2c);
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_i2c_platform.h:13:78: error: 'TwoWire' has not been declared
int VL53L0X_read_dword(uint8_t deviceAddress, uint8_t index, uint32_t *data, TwoWire *i2c);
In file included from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_api_strings.h:33:0,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_api.h:32,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:69,
from [...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino:1:
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:106:5: error: 'TwoWire' does not name a type
In file included from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_api_strings.h:33:0,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_api.h:32,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:69,
from [...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino:1:
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:284:7: error: expected unqualified-id before numeric constant
In file included from [...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_api.h:34:0,
from [...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:69,
from [...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino:1:
[...]\Arduino\libraries\Adafruit_VL53L0X\src/vl53l0x_platform.h:2:1: error: 'Skip' does not name a type
Skip to content
^
In file included from [...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino:1:0:
[...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:81:85: error: 'TwoWire' has not been declared
boolean begin(uint8_t i2c_addr = VL53L0X_I2C_ADDR, boolean debug = false, TwoWire *i2c = &Wire);
^
[...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:81:101: error: 'Wire' was not declared in this scope
boolean begin(uint8_t i2c_addr = VL53L0X_I2C_ADDR, boolean debug = false, TwoWire *i2c = &Wire);
^
In file included from [...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino:1:0:
[...]\Arduino\libraries\Adafruit_VL53L0X\src/Adafruit_VL53L0X.h:112:7: error: expected unqualified-id before numeric constant
[...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino: In function 'void setID()':
vl53l0x_dual:42: error: 'lox1' was not declared in this scope
if(!lox1.begin(LOX1_ADDRESS)) {
vl53l0x_dual:53: error: call to 'boolean Adafruit_VL53L0X::begin(uint8_t, boolean, int*)' uses the default argument for parameter 3, which is not yet defined
if(!lox2.begin(LOX2_ADDRESS)) {
[...]\Arduino\libraries\Adafruit_VL53L0X\examples\vl53l0x_dual\vl53l0x_dual.ino: In function 'void read_dual_sensors()':
vl53l0x_dual:61: error: 'lox1' was not declared in this scope
lox1.rangingTest(&measure1, false); // pass in 'true' to get debug data printout!
^
exit status 1
'lox1' was not declared in this scope