Sufficiently large resistors are a sufficient protection, just pick some that limit current to an acceptable range, depending on your logic level. You can later replace them with 0Ohm resistors or put a jumper in parralel to short out the resistors if they are not used. Also note that in many cases, SPI works just well with a few hundreds of Ohms in series with the outputs.
Sim Son
- 2.9k
- 1
- 13
- 27