I've created a program using shift registers to control digit displays. My pin layout for these registers is as follows:
//--Shift register variables--------------
const byte dataPin = 12; // arduino pin 12 to TPIC6B595 pin 3 serial in (SER IN)
const byte latchPin = 11; // arduino pin 11 to TPIC6B595 pin 12 latch signal (RCK)
const byte clockPin = 9; // arduino pin 9 to TPIC6B595 pin 13 clock (SRCK)
In another test project, I've also created a transmitter and receiver using NRF2401's and 2 arduinos. These use the following pins:
Pin 9 = CE (this I can change)
Pin 10 = CSN (this I can also change)
Pin 11 = MO (MOSI)
Pin 12 = MI (MISO)
Pin 13 = SCK
I now want to combine the 2 programs and use the one arduino (as well as another for the tranmitter. What my question is, can I use any other pins for dataPin 12 and latchPin 11 above (on a mega).