ethershield and LiquidCrystal HD44780 not working

I have an Arduino with ethershield working, and the same Arduino with an HD44780 display working.
When I put those together on one Arduino, the display doesn't show anything. The ethershield is working fine.

The code only contains a "Hello World" in the display, and an IP address for the ethershield, so it's pingable.

I've read about the pin's the ethershield uses: 10, 11, 12, and 13 (SPI)

Default LiquidCrystal uses pin 11 and 12 also, but I've changed that and tested it separately with success.

Now I'm stuck :-/

Does anybody have the same setup managed to get it working?

Hi Boomy

#include <LiquidCrystal.h>
char buffer[20];

LiquidCrystal lcd(8, 9, 4, 5, 6, 7); // <--- This is the important Line
                                //        that defines the LCD Pins

void setup()
  lcd.begin(16, 2);

void loop() {

  lcd.setCursor(0, 0);
  sprintf(buffer,"Analog 0 = %d   ",1023-analogRead(0)); // Which Button??

I have the lcd shield and ethernet shield working together, my lcd uses the lower digi pins though

Thank you for sharing your sollution P18F4550.
I've also managed now to work both the display and ethernet together.

I also found out (at least I think I did :wink: why it was not working for me.
I changed the ports 11 and 12 to unused ports, as the ethernet board uses 10, 11, 12 and 13.
But the problem was in the lower port range.
I can't use port 3 when the ethernet board is connected.

Strange, as it's an original arduino ethershield board and the documentation doesn't mention pin3 being used.