// On the Ethernet Shield, CS is pin 4. Note that even if it's not// used as the CS pin, the hardware CS pin (10 on most Arduino boards,// 53 on the Mega) must be left as an output or the SD library// functions will not work.const int chipSelect = 4;//LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C addressvoid setup(){ // lcd.begin(20,4); // Open serial communications and wait for port to open: Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only }

Serial.print("Initializing SD card..."); // make sure that the default chip select pin is set to // output, even if you don't use it: pinMode(10, OUTPUT); digitalWrite(10, HIGH);

Ethernet.begin(mac, ip); server.begin(); Serial.print("server is at "); Serial.println(Ethernet.localIP()); // see if the card is present and can be initialized: if (!SD.begin(chipSelect)) { Serial.println("Card failed, or not present"); // don't do anything more: return; } Serial.println("card initialized.");}

There is a way to not use for example the library of LCD and configure by hand the port used for SS?.

Since SS (Slave Select) is a SPI term, not a Serial term, you really WILL have to post a link the LCD you have.

You've referred to it as a Serial LCD, you've use SPI terms to talk about it, and you are using the I2C version of the library. These are 3 exclusive means to talk to devices.

Oh sorry i forgot that info. Im using 4x20 LCD exactly this model http://arduino-info.wikispaces.com/LCD-Blue-I2C with the library from here https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads