Hi there,
Ok so, Then…
Those are almost correct, for an Xiao RP2040
I would do something like this.* #define SS 28
first then go all in.
Try that?
// Map SPI port to 'new' pins
#define PIN_SPI_SS (28)
#define PIN_SPI_MOSI (3)
#define PIN_SPI_MISO (4)
#define PIN_SPI_SCK (2)
static const uint8_t SS = PIN_SPI_SS;
static const uint8_t MOSI = PIN_SPI_MOSI;
static const uint8_t MISO = PIN_SPI_MISO;
static const uint8_t SCK = PIN_SPI_SCK;
For grins , Try the Name of pin as well, i.e. A2,D10,D9, D7
HTH
GL PJ