Skip to main content
Visitor II
March 24, 2021
Question

There is a compile error in your VL32L1 code

  • March 24, 2021
  • 1 reply
  • 696 views

vl53l1_class.cpp, Line 3864ff

//Fix for some STM32 boards

//Reinitialize th i2c bus with the default parameters

#ifdef ARDUINO_ARCH_STM32

if (status) {

dev_i2c->end();

// the method end() doesn't exist, you meant: dev_i2c->endTransmission(false); ?

dev_i2c->begin();

}

#endif

    This topic has been closed for replies.

    1 reply

    ST Employee
    August 23, 2021

    Hi Ritzeng

    Since we have several sources of VL53L1 Arduino C++ libraries. Could you please precise which lib are you using and also send me the link to download the lib to check for you. Thanks. Julien