XIAO NRF52840 Plus

Sure, but the question here is specifically about the NRF52840 Plus.

Assume I have a connector on a NRF52840 Plus board I am using that has pins D11, D12,D13,D14,D15 and D16 on it.

I want to run SPI1 on those pins, so the first part of the code would be to setup the SPI1 interface, so I try some basic starting code;

#include <SPI.h>

// Define your new SPI1 pins
#define SCK_PIN D11
#define MISO_PIN D12
#define MOSI_PIN D13
#define CS_PIN D14

void setup() {
  Serial.begin(9600);
  
  // Initialize SPI with the new pins
  SPI1.begin(SCK_PIN, MISO_PIN, MOSI_PIN, CS_PIN);
  
  Serial.println("SPI1 initialized with new pins");
}

void loop() {
  // Your main code
}

Which does not compile.

So is there an alternative way of assigning the SPI1 pins in a sketch ?.

Yes ? No ?