cancel
Showing results for 
Search instead for 
Did you mean: 

ST Tof VL53L8CX and Arduino Portenta H7 Lite

2hg
Associate

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?

 

 

 

1 REPLY 1
UnderGnd
ST Employee

Hi @2hg 

You should file an issue to the library:

https://github.com/stm32duino/VL53L8CX

 

 

https://github.com/stm32duino