Esp32 pico D4 spi pins?

I have a esp32 pico kit for the d4 and wondering which pins its using by default for spi…
Otherwise could someone please give me a tip on how to set up SPI in a sketch for arduino:)

never mind about the default pins forgot to look in the examples for esp doh

// //SCLK = 18, MISO = 19, MOSI = 23, SS = 5

If you want to change the pins, you can do so like this:

SPIClass * vspi = new SPIClass(VSPI);
vspi->begin(18, 19, 23, 5); //SCLK, MISO, MOSI, SS
1 Like