More Arduino IO Pins on SAMD21

I have SparkFun SAMD21 Dev Breakout

If it is possible, how can I control SAMD21 PB22, PB23, PA27, PA12 Pins as I/O pins?

These pins not defined as Digital or Analog pin on Graphical Datasheet.

thanks.

Unfortunately I don’t think you can access those pis directly, at least not without writing your own boards package that assigns them pin names. The SPI pins should work with the SPI library though even though you can’t access them via a pin number.

PB22 and PB23 can be accessed indirectly within an Arduino sketch, using the macros PIN_LED_RXL and PIN_LED_TXL. These LEDs are active-low, so writing the pin HIGH will turn the LED off. See the hookup guide for details on those.

Thank you.