Search code examples
arduino-unorfidspi

Change SPI pins in Arduino


I read in the documentation that SPI pins are 10, 11, 12, 13, but my board has only few ports, so I can't use those specific ports, and I'd like to change them.


Solution

  • You can not change your SPI pins, it is the hardware configuration of your micro (ATmega328p)...

    enter image description here

    The only option you have is to have free PIN 11,12 and 13 for the SPI communication and configure your slave selection Pin on an other free digital I/O pin.

    You can also consider using an arduino MEGA if you need more I/O.