I have an Arduino Mega with a Ethernet2 Shield + RS232 Shield
SD Card works well with Ethernet2 Shield, but it get a conflict when I add the RS232 Shield.
Both hardware use the same PIN:
#define RS232_DIR_PIN 4 // RS232 Shield
#define AMS_SS_SD 4 // Ethernet Shield
pinMode(RS232_DIR_PIN, OUTPUT); //Set RS232 direction pin as output
digitalWrite(RS232_DIR_PIN, LOW); //Set RS232 chip as receiver
//Set SPI to Read SD Card
pinMode(AMS_SS_HARDWARE, OUTPUT);
digitalWrite(AMS_SS_HARDWARE, HIGH);
I dont need both running at same time, but I dont know how to make only one work at a time.