I am building a robot that uses a seeed motor shield v2, and an nrf24l01 wireless module. The motor shield uses digital pins 8-13. The wireless module uses the SPI pins MOSI, MISO, and SCK. On the arduino uno, these correspond to digital pins 11-13. If I use the SPI pins on the ICSP header instead of pins 11-13, can I 'disable' pins 11-13 as SPI pins, so they wont interfere with the motor shield? If not, I will just edit the motor shield library to use different pins, and modify the shield's pinout accordingly - or does anyone have any better ideas?
Thank you!
Probably not needed, but here is a "hello world" program for the nrf24l01
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(10, 9); //the CE and CSN pins to use
const byte rxAddr[6] = "00001";
void setup()
{
radio.begin();
radio.setRetries(15, 15);
radio.openWritingPipe(rxAddr);
radio.stopListening();
}
void loop()
{
const char text[] = "Hello World";
radio.write(&text, sizeof(text));
delay(1000);
}