I’m trying to port an I2C device to work with the Blues Swan, instead of an Arduino. All the wiring have a correspondent match, except the SPI_CS line, which I believe works by digitally activating/deactivating the peripheral. Should I simply choose a digital i/o line on the Swan and use it for the same purpose? If so, should the numerical value used on my code as below be the same as the digital line?
Ex: using D10 as CS
#define SPI_CS 10
pinMode(SPI_CS, OUTPUT);
digitalWrite(SPI_CS, HIGH);