Skip to main content
Visitor II
August 28, 2024
Question

ST Tof VL53L8CX and Arduino Portenta H7 Lite

  • August 28, 2024
  • 1 reply
  • 712 views

I have a Arduino Portenta H7 lite and I am using Arduino IDE to program it to read data from VL53L8CX.

I am able to read data over I2C. But for SPI, I am getting the following error
error: no matching function for call to 'arduino::HardwareSPI::HardwareSPI(int, int, int)'
SPIClass DEV_SPI(SPI_MOSI_PIN, SPI_MISO_PIN, SPI_CLK_PIN);

Github code that I am using.
https://github.com/stm32duino/VL53L8CX/tree/main/examples

The HelloWorld_I2C example works well.

The HelloWorld_SPI throws error for SPIClass. 
How can I resolve it?

 

 

 

    This topic has been closed for replies.

    1 reply

    ST Employee
    August 29, 2024

    Hi @2hg 

    You should file an issue to the library:

    https://github.com/stm32duino/VL53L8CX