Closed imreotto closed 5 years ago
https://github.com/sparkfun/SparkFun_VL53L1X_Arduino_Library/blob/75f65f0b1429ceda8776f5752d8b147c518098f7/src/SparkFun_VL53L1X.cpp#L8
In order for this Library to work on NodeMCU V1 had to change the line *_i2cPort = i2cPort; to _i2cPort = &i2cPort; Which imho is the correct way to point to an object.
*_i2cPort = i2cPort;
_i2cPort = &i2cPort;
https://github.com/sparkfun/SparkFun_VL53L1X_Arduino_Library/blob/75f65f0b1429ceda8776f5752d8b147c518098f7/src/SparkFun_VL53L1X.cpp#L8
In order for this Library to work on NodeMCU V1 had to change the line
*_i2cPort = i2cPort;
to_i2cPort = &i2cPort;
Which imho is the correct way to point to an object.