welcome to the arduino-forum.
You read the "how to get the best out of this forum" posting
The most important thing is to post your complete sketch as a code-section
inside the arduino-IDE:
press ctrl-t for autoformatting your code.
press ctrl-shift-C to copy the complete sketch into the clipboard
including the code-section formatting
change from IDE to browser and press ctrl-v
The reference to the RP2040 shows what IO-pins are used for the SPI-bus