LCD Shield and Network port.. need a pin moving?

Hi peeps,

I'm using an Arduino Uno with a LCD Shield which uses the following pins...

Pin Function Analog 0 Button (select, up, right, down and left) Digital 4 DB4 Digital 5 DB5 Digital 6 DB6 Digital 7 DB7 Digital 8 RS (Data or Signal Display Selection) Digital 9 Enable Digital 10 Backlit Control

This is declared in the code as follows; // select the pins used on the LCD panel LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

I also want to use a ENC28J60 Network attachment and this uses the following pins

Wire up as following (ENC = module side): - ENC SO -> Arduino pin 12 - ENC SI -> Arduino pin 11 - ENC SCK -> Arduino pin 13 - ENC CS -> Arduino pin 8 - ENC VCC -> Arduino 3V3 pin - ENC GND -> Arduino Gnd pin

Now, everything's good apart from Pin 8. I am happy to cut pins if needed on my shield and remap / solder, just dont know which one's best to do.

Any advice would be most helpful. I am also running an RF reader so only really have the rest off the analogue pins and 1&2 free.

Thanks,

Steve

(careful) bending pin 8 of the upper shield (LCD) and connect it to pin 9 with a male/female cable?

no need to cut

Would I then declare it as..

LiquidCrystal lcd(9, 9, 4, 5, 6, 7);

?

thanks,

Sorry, you should connect it to a free pin (did check if pin9 was used, my mistake :blush: :)

pin 3 seems to be free (otherwise you can use the analog Pins as digital ones nr 14..19 LiquidCrystal lcd(3, 9, 4, 5, 6, 7);

as backlight is enabled always for most sketches you can bend that pin too and connect it to +5