Hello,
I have some trouble with an Arduino Mega using the ethernet shield with an lcd keypad shield.
When only the lcd is plugged, all is working. But if i plug the ethernet shield, it doesn't work anymore.
I have override the pins used by the LCD to avoid conflicts with the ethernet shield (use the library at GitHub - dniklaus/arduino-display-lcdkeypad: Arduino LCD Keypad Shield driver. ) :
_lcdkeypad = new LcdKeypad(
LcdKeypad::MCPT_MCP23017, // MCPType mcptype
0x20, // uint8_t i2cAddr
1, // uint8_t detectDevice
0, // uint8_t backlightInverted
35, // LcdKeypad::s_defaultLcdRSPin
37, // LcdKeypad::s_defaultLcdEnPin
27, // LcdKeypad::s_defaultLcdD4Pin
29, // LcdKeypad::s_defaultLcdD5Pin
31, // LcdKeypad::s_defaultLcdD6Pin
33, // LcdKeypad::s_defaultLcdD7Pin
39, // LcdKeypad::s_defaultLcdBackLightCtrlPin
false // LcdKeypad::s_defaultIsLcdBackLightOn
);
Even with that, it doesn't work. I don't see any conflicting pin. If i unplug the icsp connector, the lcd works like a charm.
Any idea?